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
Jonathan Davies
116036d574
treewide: Remove redundant versionCheckProgramArg = "--version"; with:
...
```shell
git grep -l -e 'versionCheckProgramArg = "--version";' -e 'versionCheckProgramArg = \[ "--version" \];' | while read f; do
sed -i '/versionCheckProgramArg/d' "$f"
sed -i '/^$/N;/\n$/D' "$f"
done
```
2025-11-20 10:39:02 +00:00
TomaSajt
398b16e16c
treewide: remove useFetchCargoVendor usages
2025-07-26 11:39:35 +02:00
Wolfgang Walther
5a0711127c
treewide: run nixfmt 1.0.0
2025-07-24 13:55:40 +02:00
Gaetan Lepage
bfe27cf81c
treewide: use a string for versionCheckProgramArg where possible
2025-04-05 14:45:13 +02:00
Gaetan Lepage
29bffa5f6f
pylyzer: 0.0.81 -> 0.0.82
...
Diff: https://github.com/mtshiba/pylyzer/compare/refs/tags/v0.0.81...v0.0.82
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.82
2025-02-25 13:20:49 +01:00
Gaetan Lepage
3a5dd9ea41
pylyzer: 0.0.80 -> 0.0.81
...
Diff: https://github.com/mtshiba/pylyzer/compare/refs/tags/v0.0.80...v0.0.81
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.81
2025-02-22 10:48:59 +01:00
Gaetan Lepage
e5cafe9052
pylyzer: 0.0.79 -> 0.0.80
...
Diff: https://github.com/mtshiba/pylyzer/compare/refs/tags/v0.0.79...v0.0.80
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.80
2025-02-18 17:32:59 +01:00
Gaetan Lepage
fa75931857
pylyzer: 0.0.78 -> 0.0.79
...
Diff: https://github.com/mtshiba/pylyzer/compare/refs/tags/v0.0.78...v0.0.79
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.79
2025-02-09 17:52:28 +01:00
Pol Dellaiera
6e7356cb06
pylyzer: use writableTmpDirAsHomeHook
2025-01-30 22:15:10 +01:00
Gaetan Lepage
9a057d2638
pylyzer: 0.0.77 -> 0.0.78
...
Diff: https://github.com/mtshiba/pylyzer/compare/refs/tags/v0.0.77...v0.0.78
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.78
2025-01-29 09:50:15 +01:00
Gaetan Lepage
bf2ffa198c
pylyzer: 0.0.76 -> 0.0.77
...
Diff: https://github.com/mtshiba/pylyzer/compare/refs/tags/v0.0.76...v0.0.77
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.77
2025-01-17 09:33:16 +01:00
Gaetan Lepage
11bbeb48fb
pylyzer: 0.0.75 -> 0.0.76
...
Diff: https://github.com/mtshiba/pylyzer/compare/None...v0.0.76
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.76
2024-12-29 11:31:50 +01:00
Gaetan Lepage
3f559b72fe
pylyzer: 0.0.74 -> 0.0.75
...
Diff: https://github.com/mtshiba/pylyzer/compare/None...v0.0.75
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.75
2024-12-24 23:04:20 +01:00
Gaetan Lepage
c5217143e8
pylyzer: 0.0.73 -> 0.0.74
...
Diff: https://github.com/mtshiba/pylyzer/compare/None...v0.0.74
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.74
2024-12-16 16:01:23 +01:00
Gaetan Lepage
5e95ee4971
pylyzer: 0.0.72 -> 0.0.73
...
Diff: https://github.com/mtshiba/pylyzer/compare/refs/tags/v0.0.72...v0.0.73
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.73
2024-12-07 16:47:10 +01:00
R. Ryantm
eef600b772
pylyzer: 0.0.71 -> 0.0.72
2024-12-07 08:45:42 +00:00
Gaetan Lepage
a0f1c12faa
pylyzer: 0.0.70 -> 0.0.71
...
Diff: https://github.com/mtshiba/pylyzer/compare/refs/tags/v0.0.70...v0.0.71
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.71
2024-11-20 18:09:18 +01:00
Gaetan Lepage
e4c62c1fc4
pylyzer: 0.0.69 -> 0.0.70
...
Diff: https://github.com/mtshiba/pylyzer/compare/refs/tags/v0.0.69...v0.0.70
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.70
2024-11-10 17:06:21 +01:00
Gaetan Lepage
7819e57453
pylyzer: 0.0.68 -> 0.0.69
...
Diff: https://github.com/mtshiba/pylyzer/compare/refs/tags/v0.0.68...v0.0.69
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.69
2024-11-04 10:58:22 +01:00
Gaetan Lepage
82af28732e
pylyzer: 0.0.67 -> 0.0.68
...
Diff: https://github.com/mtshiba/pylyzer/compare/refs/tags/v0.0.67...v0.0.68
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.68
2024-10-20 10:10:37 +02:00
Gaetan Lepage
eaa5db175d
pylyzer: 0.0.66 -> 0.0.67
...
Diff: https://github.com/mtshiba/pylyzer/compare/refs/tags/v0.0.66...v0.0.67
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.67
2024-10-19 11:11:55 +02:00
Gaetan Lepage
1cce98b1f0
pylyzer: 0.0.65 -> 0.0.66
...
Diff: https://github.com/mtshiba/pylyzer/compare/refs/tags/v0.0.65...v0.0.66
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.66
2024-10-15 19:09:57 +02:00
Gaétan Lepage
2093089531
pylyzer: 0.0.64 -> 0.0.65 ( #346842 )
...
Diff: https://github.com/mtshiba/pylyzer/compare/refs/tags/v0.0.64...v0.0.65
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.65
2024-10-06 12:33:05 +02:00
Gaetan Lepage
30816e67d1
pylyzer: 0.0.63 -> 0.0.64
...
Diff: https://github.com/mtshiba/pylyzer/compare/refs/tags/v0.0.63...v0.0.64
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.64
2024-10-04 11:01:45 +02:00
Gaetan Lepage
f4ef425868
pylyzer: 0.0.62 -> 0.0.63
...
Diff: https://github.com/mtshiba/pylyzer/compare/refs/tags/v0.0.62...v0.0.63
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.63
2024-09-26 13:05:03 +02:00
Artturin
63fa53d97c
treewide: reformat files which need reformatting after
...
`treewide: replace stdenv.is with stdenv.hostPlatform.is`
2024-09-25 00:04:39 +03:00
Artturin
e0464e4788
treewide: replace stdenv.is with stdenv.hostPlatform.is
...
In preparation for the deprecation of `stdenv.isX`.
These shorthands are not conducive to cross-compilation because they
hide the platforms.
Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way
One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059
There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.
```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Gaetan Lepage
2cca527d4f
pylyzer: 0.0.61 -> 0.0.62
...
Diff: https://github.com/mtshiba/pylyzer/compare/refs/tags/v0.0.61...v0.0.62
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.62
2024-09-19 13:11:56 +02:00
Gaetan Lepage
f39985a8bd
pylyzer: 0.0.59 -> 0.0.61
...
Diff: https://github.com/mtshiba/pylyzer/compare/refs/tags/v0.0.59...v0.0.61
Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.61
2024-08-20 16:52:24 +02:00
Gaetan Lepage
4d300bcf04
pylyzer: format
2024-08-16 10:17:01 +02:00
Gaetan Lepage
f287b2281a
pylyzer: move to pkgs/by-name
2024-08-16 10:06:33 +02:00