Loading pkgs/build-support/rust/fetch-cargo-vendor.nix +16 −15 Original line number Diff line number Diff line Loading @@ -22,6 +22,21 @@ let ]; } (builtins.readFile ./replace-workspace-values.py); nix-prefetch-git' = nix-prefetch-git.override { git = gitMinimal; # break loop of nix-prefetch-git -> git-lfs -> asciidoctor -> ruby (yjit) -> fetchCargoVendor -> nix-prefetch-git # Cargo does not currently handle git-lfs: https://github.com/rust-lang/cargo/issues/9692 git-lfs = null; }; removedArgs = [ "name" "pname" "version" "nativeBuildInputs" "hash" ]; mkFetchCargoVendorUtil = name: src: writers.writePython3Bin name { Loading Loading @@ -57,14 +72,6 @@ in # TODO: add asserts about pname version and name let removedArgs = [ "name" "pname" "version" "nativeBuildInputs" "hash" ]; vendorStaging = stdenvNoCC.mkDerivation ( { name = "${name}-vendor-staging"; Loading @@ -74,12 +81,7 @@ let nativeBuildInputs = [ fetchCargoVendorUtilV2 cacert (nix-prefetch-git.override { git = gitMinimal; # break loop of nix-prefetch-git -> git-lfs -> asciidoctor -> ruby (yjit) -> fetchCargoVendor -> nix-prefetch-git # Cargo does not currently handle git-lfs: https://github.com/rust-lang/cargo/issues/9692 git-lfs = null; }) nix-prefetch-git' ] ++ nativeBuildInputs; Loading Loading @@ -108,7 +110,6 @@ let // removeAttrs args removedArgs ); in runCommand "${name}-vendor" { inherit vendorStaging; Loading Loading
pkgs/build-support/rust/fetch-cargo-vendor.nix +16 −15 Original line number Diff line number Diff line Loading @@ -22,6 +22,21 @@ let ]; } (builtins.readFile ./replace-workspace-values.py); nix-prefetch-git' = nix-prefetch-git.override { git = gitMinimal; # break loop of nix-prefetch-git -> git-lfs -> asciidoctor -> ruby (yjit) -> fetchCargoVendor -> nix-prefetch-git # Cargo does not currently handle git-lfs: https://github.com/rust-lang/cargo/issues/9692 git-lfs = null; }; removedArgs = [ "name" "pname" "version" "nativeBuildInputs" "hash" ]; mkFetchCargoVendorUtil = name: src: writers.writePython3Bin name { Loading Loading @@ -57,14 +72,6 @@ in # TODO: add asserts about pname version and name let removedArgs = [ "name" "pname" "version" "nativeBuildInputs" "hash" ]; vendorStaging = stdenvNoCC.mkDerivation ( { name = "${name}-vendor-staging"; Loading @@ -74,12 +81,7 @@ let nativeBuildInputs = [ fetchCargoVendorUtilV2 cacert (nix-prefetch-git.override { git = gitMinimal; # break loop of nix-prefetch-git -> git-lfs -> asciidoctor -> ruby (yjit) -> fetchCargoVendor -> nix-prefetch-git # Cargo does not currently handle git-lfs: https://github.com/rust-lang/cargo/issues/9692 git-lfs = null; }) nix-prefetch-git' ] ++ nativeBuildInputs; Loading Loading @@ -108,7 +110,6 @@ let // removeAttrs args removedArgs ); in runCommand "${name}-vendor" { inherit vendorStaging; Loading