R. Ryantm
f6a03e5c16
cargo-modules: 0.26.0 -> 0.27.0
2026-08-04 00:32:33 +00:00
R. Ryantm
4c69d2b4d6
cargo-modules: 0.25.0 -> 0.26.0
2026-04-21 00:34:00 +00: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
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
Michael Daniels
1d0bb7b61b
treewide: drop figsoda as maintainer (part 3)
...
s/^\s*figsoda\s*$//
2025-11-02 20:16:11 -05:00
R. Ryantm
ebc81d5c9f
cargo-modules: 0.24.3 -> 0.25.0
2025-10-19 00:32:35 +00:00
TomaSajt
398b16e16c
treewide: remove useFetchCargoVendor usages
2025-07-26 11:39:35 +02:00
R. Ryantm
35beb68f70
cargo-modules: 0.24.2 -> 0.24.3
2025-07-01 09:52:57 +00:00
R. Ryantm
1b4ad2b671
cargo-modules: 0.24.1 -> 0.24.2
2025-06-14 04:45:08 +00:00
R. Ryantm
bd1e4e6419
cargo-modules: 0.24.0 -> 0.24.1
2025-06-03 13:03:47 +00:00
R. Ryantm
8c6d89a8f9
cargo-modules: 0.23.1 -> 0.24.0
2025-05-13 00:27:12 +00:00
R. Ryantm
91d188b3b5
cargo-modules: 0.22.1 -> 0.23.1
2025-04-09 00:52:22 +00:00
Gaetan Lepage
bfe27cf81c
treewide: use a string for versionCheckProgramArg where possible
2025-04-05 14:45:13 +02:00
R. Ryantm
b4458d5e05
cargo-modules: 0.22.0 -> 0.22.1
2025-03-03 00:24:30 +00:00
R. Ryantm
03801f4609
cargo-modules: 0.21.2 -> 0.22.0
2025-02-17 23:21:56 +00:00
Alyssa Ross
502c77492b
Merge remote-tracking branch 'origin/staging-next' into staging
...
Conflicts:
pkgs/applications/editors/vim/plugins/non-generated/avante-nvim/default.nix
pkgs/applications/editors/vim/plugins/non-generated/cord-nvim/default.nix
pkgs/applications/version-management/git-stack/default.nix
pkgs/by-name/bo/boxbuddy/package.nix
pkgs/by-name/ca/capnproto-rust/package.nix
pkgs/by-name/ca/cargo-binstall/package.nix
pkgs/by-name/ca/cargo-deb/package.nix
pkgs/by-name/ca/cargo-modules/package.nix
pkgs/by-name/cl/clapboard/package.nix
pkgs/by-name/do/dotslash/package.nix
pkgs/by-name/fe/felix-fm/package.nix
pkgs/by-name/gi/gitlab-ci-ls/package.nix
pkgs/by-name/go/gotify-desktop/package.nix
pkgs/by-name/ha/handlr-regex/package.nix
pkgs/by-name/ir/iroh/package.nix
pkgs/by-name/ma/manga-tui/package.nix
pkgs/by-name/ob/obs-cmd/package.nix
pkgs/by-name/ox/oxlint/package.nix
pkgs/by-name/pi/pik/package.nix
pkgs/by-name/re/reindeer/package.nix
pkgs/by-name/rn/rnr/package.nix
pkgs/by-name/ro/routinator/package.nix
pkgs/by-name/rw/rwpspread/package.nix
pkgs/by-name/sk/skim/package.nix
pkgs/by-name/so/sope/package.nix
pkgs/by-name/so/soteria/package.nix
pkgs/by-name/sp/spacer/package.nix
pkgs/by-name/st/stylance-cli/package.nix
pkgs/by-name/su/subxt/package.nix
pkgs/by-name/sw/swayfx-unwrapped/package.nix
pkgs/by-name/te/television/package.nix
pkgs/by-name/to/toast/package.nix
pkgs/by-name/wa/wastebin/package.nix
pkgs/by-name/wi/wit-bindgen/package.nix
pkgs/by-name/wo/workshop-runner/package.nix
pkgs/development/interpreters/wasmtime/default.nix
pkgs/development/tools/rust/cargo-edit/default.nix
pkgs/development/tools/sentry-cli/default.nix
pkgs/misc/t-rec/default.nix
pkgs/tools/video/yaydl/default.nix
2025-01-26 14:55:08 +01:00
R. Ryantm
4955667711
cargo-modules: 0.21.1 -> 0.21.2
2025-01-23 12:54:44 +00: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
nartsisss
6898e5e1c8
cargo-modules: 0.20.2 -> 0.21.1
2024-12-14 16:23:14 +03:00
R. Ryantm
2843169b00
cargo-modules: 0.19.1 -> 0.20.2
2024-12-05 22:53:12 +00:00
nartsisss
5cee7bf55a
cargo-modules: refactor meta, format using nixfmt-rfc-style
2024-10-29 16:35:32 +03:00
nartsisss
b03b98b173
cargo-modules: move to pkgs/by-name
2024-10-29 16:32:15 +03:00