Commit Graph

19 Commits

Author SHA1 Message Date
NotAShelf
44603154e2 microfetch: 1.1.0 -> 1.2.0; re-enable checks & add Darwin to platforms
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I0b85aad1f06925802e7e1fbe1a2bac966a6a6964
2026-07-13 22:36:01 +03:00
Notarin Steele
1051133fac microfetch: 0.4.13 -> 1.1.0
Also disabled the checkPhase due to linking issues. Build works perfectly aside from that.
Resolves #519414
2026-05-15 21:59:35 -04:00
Ben Siraphob
869d641281 treewide: replace stdenv.is* with stdenv.hostPlatform.is* 2026-05-10 10:06:35 -07:00
Dan Xin
cab6373519 microfetch: 0.4.9 -> 0.4.13
Signed-off-by: Dan Xin <davinci42.cn@gmail.com>
2026-02-07 18:15:31 +08:00
quantenzitrone
d26a1a9e5e various: switch buildRustPackage packages to use finalAttrs
this shouldn't create any rebuilds

the following script was used to generate this:
```fish
#!/usr/bin/env fish

# nix shell .#nixfmt nixpkgs#{nixf-diagnose,ripgrep,sd}

set base (git rev-parse HEAD)

set scope pkgs/by-name
set builder buildRustPackage

set files (rg --files-with-matches -F "$builder rec {" $scope | sort -u)

for file in $files
    echo $file
    sd -F "$builder rec {" "$builder (finalAttrs: {" $file
    # version
    sd -F 'version}' 'finalAttrs.version}' $file
    sd -F '${version' '${finalAttrs.version' $file
    sd -F '= version' '= finalAttrs.version' $file
    sd -F 'inherit version;' 'inherit (finalAttrs) version;' $file
    sd -F ' + version;' ' + finalAttrs.version;' $file
    sd 'replaceStrings (.*) version' 'replaceStrings $1 finalAttrs.version' $file
    sd -F 'splitVersion version' 'splitVersion finalAttrs.version' $file
    sd -F 'versionAtLeast version' 'versionAtLeast finalAttrs.version' $file
    sd 'versions\.([a-z]+) version' 'versions.$1 finalAttrs.version' $file
    # src
    sd -F 'src}' 'finalAttrs.src}' $file
    sd -F '${src' '${finalAttrs.src' $file
    sd -F '= src' '= finalAttrs.src' $file
    sd -F 'inherit src;' 'inherit (finalAttrs) src;' $file
    sd -F 'inherit (src' 'inherit (finalAttrs.src' $file
    # meta
    sd -F '${meta' '${finalAttrs.meta' $file
    sd -F '= meta' '= finalAttrs.meta' $file
    sd -F 'inherit (meta' 'inherit (finalAttrs.meta' $file
    # other
    sd -F 'inherit version src;' 'inherit (finalAttrs) version src;' $file
    sd -F 'inherit src version;' 'inherit (finalAttrs) src version;' $file
    sd -F 'makeLibraryPath buildInputs' 'makeLibraryPath finalAttrs.buildInputs' $file
    sd -F 'buildInputs}' 'finalAttrs.buildInputs}' $file
    sd -F 'desktopItem}' 'finalAttrs.desktopItem}' $file
    sd -F 'runtimeLibs}' 'finalAttrs.runtimeLibs}' $file
    sd -F 'libPath}' 'finalAttrs.libPath}' $file
    sd -F 'runtimeDependencies}' 'finalAttrs.runtimeDependencies}' $file
    sd -F 'nativeRuntimeInputs}' 'finalAttrs.nativeRuntimeInputs}' $file
    sd -F '(!doCheck)' '(!finalAttrs.doCheck)' $file
    sd -F 'optional doCheck' 'optional finalAttrs.doCheck' $file
    sd -F 'optionals doCheck' 'optionals finalAttrs.doCheck' $file
    sd -F '++ runtimeDependencies' '++ finalAttrs.runtimeDependencies' $file
    # pname (restored afterwards)
    sd -F 'pname}' 'finalAttrs.pname}' $file
    sd -F '${pname' '${finalAttrs.pname' $file
    sd -F '= pname' '= finalAttrs.pname' $file
    # close finalAttrs lambda
    echo ')' >>$file
    # catch some errors early
    if ! nixfmt $file
        git restore $file
        continue
    end
    if ! nixf-diagnose -i sema-primop-overridden $file
        git restore $file
        continue
    end
end

set torestore (rg -F .finalAttrs --files-with-matches $scope)
if test (count $torestore) -gt 0
    git restore $torestore
end
set torestore (rg -F finalAttrs.pname --files-with-matches $scope)
if test (count $torestore) -gt 0
    git restore $torestore
end

# commit for faster eval times
git add pkgs
git commit --no-gpg-sign -m temp
set torestore

for file in $files
    # file hasn't changed
    if git diff --quiet $base $file
        continue
    end
    # try to eval the package to definitely catch all errors
    echo $file
    set pname (string split / $file -f 4)
    if ! nix eval .#$pname
        set torestore $torestore $file
    end
end

# restore files that don't eval
git reset --soft $base
git restore --staged .
if test (count $torestore) -gt 0
    git restore $torestore
end
```

after that some manual cleanup was done:
- restoring files that cause changes in the number of lines
- restoring files that cause rebuilds
- restoring files that cause merge conflicts with staging
2026-02-07 09:53:17 +01:00
TomaSajt
398b16e16c treewide: remove useFetchCargoVendor usages 2025-07-26 11:39:35 +02:00
R. Ryantm
7c6d0a4c69 microfetch: 0.4.8 -> 0.4.9 2025-06-23 00:47:33 +00:00
R. Ryantm
857600a375 microfetch: 0.4.7 -> 0.4.8 2025-05-13 20:46:20 +00:00
R. Ryantm
eb2ed5a105 microfetch: 0.4.6 -> 0.4.7 2025-04-17 21:47:30 +00:00
K900
0b9221c442 Merge remote-tracking branch 'origin/master' into staging-next 2025-02-01 00:30:10 +03:00
NotAShelf
12f3fb535d microfetch: 0.4.4 -> 0.4.6
FASTER
2025-01-29 22:41:48 +03:00
Alyssa Ross
63bff8c132 treewide: migrate to fetchCargoVendor, batch 1
Cargo 1.84.0 seems to have changed the output format of cargo vendor
again, once again invalidating fetchCargoTarball FOD hashes.  It's
time to fix this once and for all, switching across the board to
fetchCargoVendor, which is not dependent on cargo vendor's output
format.

It should be possible to reproduce this diff.  To do so, get the list
of files changed by this commit, e.g. with git diff --name-only, then
run the following two commands, each with that list of files as their
standard input:

	xargs sed -i 's/^\(. *\)\(cargoHash\)\b/\1useFetchCargoVendor = true;\n\1cargoHash/'
	cut -d / -f 4 | xargs -n 1 nix-update --version=skip

This will take a long time.  It might be possible to parallelize it
using xargs' -P option.  I haven't tested it.
2025-01-23 11:46:43 +01:00
NotAShelf
7be8603fab microfetch: 0.4.2 -> 0.4.4; use tag in fetcher 2024-12-19 19:29:31 +03:00
R. Ryantm
da3fc64e1a microfetch: 0.4.1 -> 0.4.2 2024-12-10 21:23:22 +00:00
R. Ryantm
10f3fe9c7a microfetch: 0.4.0 -> 0.4.1 2024-11-20 06:26:52 +00:00
Nydragon
6d0458f916 microfetch: add notashelf as maintainer 2024-08-18 01:01:30 +02:00
Nydragon
f4e5df01cc microfetch: add update script 2024-08-18 01:01:30 +02:00
Nydragon
be32c3603e microfetch: 0.3.3 -> 0.4.0
https://github.com/NotAShelf/microfetch/compare/v0.3.3...v0.4.0
2024-08-18 01:01:30 +02:00
Nydragon
27e83d2169 microfetch: init at 0.3.3
Addition of [microfetch]:

> A stupidly simple fetch tool, written in Rust. Runs in a fraction of a
> second, displays most nonsense people on r/unixporn care about. Aims
> to replace fastfetch on my system, but probably not on yours. Though
> you are more than welcome to use it on your system: it's fast.

[microfetch]: https://github.com/NotAShelf/microfetch
2024-08-06 20:14:32 +02:00