Commit Graph

109 Commits

Author SHA1 Message Date
R. Ryantm
c03ab83f8e files-cli: 2.15.381 -> 2.15.442 2026-08-13 22:30:54 +00:00
R. Ryantm
e4ed0b158a files-cli: 2.15.371 -> 2.15.381 2026-07-09 00:23:11 +00:00
R. Ryantm
e295d0ab7e files-cli: 2.15.354 -> 2.15.371 2026-06-30 02:44:14 +00:00
R. Ryantm
6b1d46d01b files-cli: 2.15.335 -> 2.15.354 2026-06-21 19:42:23 +00:00
R. Ryantm
530bcf06e6 files-cli: 2.15.316 -> 2.15.335 2026-06-12 20:32:29 +00:00
R. Ryantm
f147b06a31 files-cli: 2.15.305 -> 2.15.316 2026-06-03 10:05:46 +00:00
R. Ryantm
3704ed0a74 files-cli: 2.15.297 -> 2.15.305 2026-05-25 12:35:55 +00:00
R. Ryantm
506c7bff0a files-cli: 2.15.287 -> 2.15.297 2026-05-17 07:55:31 +00:00
R. Ryantm
f65b98c883 files-cli: 2.15.282 -> 2.15.287 2026-05-08 22:02:53 +00:00
R. Ryantm
b35a6dc4c8 files-cli: 2.15.274 -> 2.15.282 2026-04-30 13:47:12 +00:00
R. Ryantm
6d38dc14a5 files-cli: 2.15.264 -> 2.15.274 2026-04-21 10:32:35 +00:00
R. Ryantm
c7b840ca59 files-cli: 2.15.257 -> 2.15.264 2026-04-13 08:45:57 +00:00
R. Ryantm
61cefa82a1 files-cli: 2.15.241 -> 2.15.257 2026-04-05 14:47:47 +00:00
R. Ryantm
9d16c2f6b0 files-cli: 2.15.220 -> 2.15.241 2026-03-27 15:24:07 +00:00
R. Ryantm
3da0eb1321 files-cli: 2.15.211 -> 2.15.220 2026-03-18 16:45:17 +00:00
R. Ryantm
cc740d1243 files-cli: 2.15.207 -> 2.15.211 2026-03-10 19:03:44 +00:00
R. Ryantm
6d07c196e8 files-cli: 2.15.205 -> 2.15.207 2026-03-02 14:17:15 +00:00
R. Ryantm
66eef4ecf4 files-cli: 2.15.204 -> 2.15.205 2026-02-22 14:00:09 +00:00
R. Ryantm
2a1ae7f64d files-cli: 2.15.200 -> 2.15.204 2026-02-12 11:04:27 +00:00
quantenzitrone
9380e05c3c various: switch buildGoModule 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 buildGoModule

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:28:59 +01:00
R. Ryantm
e889c24547 files-cli: 2.15.195 -> 2.15.200 2026-02-05 13:45:19 +00:00
R. Ryantm
3c406ac081 files-cli: 2.15.194 -> 2.15.195 2026-01-29 09:03:35 +00:00
R. Ryantm
d02ecc000d files-cli: 2.15.191 -> 2.15.194 2026-01-22 16:13:14 +00:00
R. Ryantm
a039856519 files-cli: 2.15.178 -> 2.15.191 2026-01-16 01:31:38 +00:00
R. Ryantm
10ddc4a5f7 files-cli: 2.15.177 -> 2.15.178 2026-01-03 07:03:46 +00:00
R. Ryantm
ace64607f9 files-cli: 2.15.174 -> 2.15.177 2025-12-25 23:35:59 +00:00
R. Ryantm
485ff0b80d files-cli: 2.15.159 -> 2.15.174 2025-12-19 00:58:41 +00:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
R. Ryantm
a58bc67dea files-cli: 2.15.156 -> 2.15.159 2025-12-06 01:57:20 +00:00
R. Ryantm
8e2d270ae2 files-cli: 2.15.152 -> 2.15.156 2025-11-29 15:33:15 +00:00
R. Ryantm
f4768073aa files-cli: 2.15.139 -> 2.15.152 2025-11-23 08:04:14 +00:00
R. Ryantm
d0c8cb89c8 files-cli: 2.15.134 -> 2.15.139 2025-11-16 14:27:52 +00:00
R. Ryantm
305fb9514a files-cli: 2.15.131 -> 2.15.134 2025-11-09 20:55:32 +00:00
R. Ryantm
1c34e2b593 files-cli: 2.15.126 -> 2.15.131 2025-11-03 00:24:14 +00:00
R. Ryantm
88608440c2 files-cli: 2.15.121 -> 2.15.126 2025-10-24 16:26:22 +00:00
R. Ryantm
cef2484856 files-cli: 2.15.111 -> 2.15.121 2025-10-18 16:11:55 +00:00
R. Ryantm
e958f7d8ed files-cli: 2.15.104 -> 2.15.111 2025-10-06 01:35:16 +00:00
R. Ryantm
d4c62498c4 files-cli: 2.15.96 -> 2.15.104 2025-09-25 08:12:54 +00:00
R. Ryantm
8e805cd1c2 files-cli: 2.15.88 -> 2.15.96 2025-09-14 04:28:58 +00:00
R. Ryantm
e35a787675 files-cli: 2.15.85 -> 2.15.88 2025-09-02 17:43:49 +00:00
R. Ryantm
7502a33ed3 files-cli: 2.15.77 -> 2.15.85 2025-08-22 22:35:13 +00:00
R. Ryantm
50f27834b4 files-cli: 2.15.70 -> 2.15.77 2025-08-14 16:42:33 +00:00
R. Ryantm
a15b563264 files-cli: 2.15.61 -> 2.15.70 2025-08-05 16:22:39 +00:00
R. Ryantm
afb0e9ea0e files-cli: 2.15.51 -> 2.15.61 2025-07-27 18:00:38 +00:00
R. Ryantm
d988f09910 files-cli: 2.15.44 -> 2.15.51 2025-07-19 14:05:46 +00:00
R. Ryantm
732b35a3aa files-cli: 2.15.38 -> 2.15.44 2025-07-11 09:39:47 +00:00
R. Ryantm
025744afbb files-cli: 2.15.32 -> 2.15.38 2025-07-01 10:56:50 +00:00
R. Ryantm
2a133e59f3 files-cli: 2.15.25 -> 2.15.32 2025-06-21 05:23:59 +00:00
R. Ryantm
22e0e504a3 files-cli: 2.15.16 -> 2.15.25 2025-06-11 20:54:31 +00:00
R. Ryantm
d30becbb99 files-cli: 2.15.7 -> 2.15.16 2025-06-01 13:48:09 +00:00