R. Ryantm
df6b714785
api-linter: 2.3.0 -> 2.3.1
2026-03-17 21:03:53 +00:00
R. Ryantm
23d38826f5
api-linter: 2.2.0 -> 2.3.0
2026-02-11 00:20:47 +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
d2815eda95
api-linter: 2.1.0 -> 2.2.0
2026-01-23 00:21:48 +00:00
R. Ryantm
fa19eb4e0a
api-linter: 2.0.0 -> 2.1.0
2025-12-16 16:30:22 +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
338fbbb6d6
api-linter: 1.72.0 -> 2.0.0
2025-10-28 04:12:22 +00:00
R. Ryantm
3fcaabe0bb
api-linter: 1.71.0 -> 1.72.0
2025-10-22 00:21:50 +00:00
R. Ryantm
dcca72f3e3
api-linter: 1.70.2 -> 1.71.0
2025-09-02 18:22:38 +00:00
R. Ryantm
843b30fb37
api-linter: 1.70.1 -> 1.70.2
2025-08-07 00:27:06 +00:00
R. Ryantm
92cb617129
api-linter: 1.70.0 -> 1.70.1
2025-07-25 07:31:55 +00:00
R. Ryantm
7ed1a4e50d
api-linter: 1.69.2 -> 1.70.0
2025-07-17 00:28:05 +00:00
Guy Chronister
b3f74569d7
treewide: migrate rev to tag batch 2
2025-06-24 13:24:35 +00:00
Winter
a19cd4ffb1
Revert "treewide: replace rev with tag"
...
This reverts commit 65a333600d .
This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.
It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).
A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.
[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera
65a333600d
treewide: replace rev with tag
2025-04-07 16:57:22 +02:00
R. Ryantm
9721e7a3e7
api-linter: 1.69.0 -> 1.69.2
2025-02-25 21:07:03 +00:00
R. Ryantm
d1e4020ac2
api-linter: 1.68.0 -> 1.69.0
2025-02-12 00:31:57 +00:00
R. Ryantm
cfb2542d54
api-linter: 1.67.6 -> 1.68.0
2025-01-15 00:52:21 +00:00
Silvan Mosberger
4f0dadbf38
treewide: format all inactive Nix files
...
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build a08b3a4d19 .tar.gz \
--argstr baseRev b32a094368
result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
R. Ryantm
a393ecaaca
api-linter: 1.67.4 -> 1.67.6
2024-12-01 20:08:02 +00:00
R. Ryantm
410df2cbe1
api-linter: 1.67.3 -> 1.67.4
2024-10-23 01:28:03 +00:00
R. Ryantm
80b7689946
api-linter: 1.67.2 -> 1.67.3
2024-09-24 04:22:42 +00:00
R. Ryantm
8e7e1b41ad
api-linter: 1.67.1 -> 1.67.2
2024-08-17 13:27:00 +00:00
R. Ryantm
e4ad7c4345
api-linter: 1.67.0 -> 1.67.1
2024-08-10 12:15:32 +00:00
R. Ryantm
2032db4ca0
api-linter: 1.66.2 -> 1.67.0
2024-07-31 10:43:44 +00:00
R. Ryantm
63cb5e6504
api-linter: 1.66.1 -> 1.66.2
2024-06-28 00:23:45 +00:00
R. Ryantm
fb07767047
api-linter: 1.66.0 -> 1.66.1
2024-05-27 09:20:13 +00:00
R. Ryantm
cfb79d0f61
api-linter: 1.65.2 -> 1.66.0
2024-05-21 01:57:52 +00:00
R. Ryantm
52bf4d506e
api-linter: 1.65.1 -> 1.65.2
2024-04-24 12:08:26 +00:00
R. Ryantm
933b3f9a0f
api-linter: 1.65.0 -> 1.65.1
2024-04-18 18:33:29 +00:00
R. Ryantm
cda1320493
api-linter: 1.64.0 -> 1.65.0
2024-04-13 00:20:00 +00:00
R. Ryantm
1394918ada
api-linter: 1.63.6 -> 1.64.0
2024-03-05 00:49:25 +00:00
xrelkd
4d4d555695
api-linter: add meta.mainProgram
2024-02-24 05:43:07 +08:00
xrelkd
440deb904e
api-linter: migrate to by-name
2024-02-24 05:43:07 +08:00