buildRustPackage: remove git from nativeBuildInputs
Having git in nativeBuildInputs causes thousands of rebuilds when git is touched because every derivation that somehow transiently depends on a rust package will change. See https://github.com/NixOS/nixpkgs/pull/205682 for instance. AFAICT git is unused. Only the fetcher needs git which it has already. Fixes https://github.com/NixOS/nixpkgs/issues/205804
This commit is contained in:
parent
7843a268f2
commit
3eec3c8fed
@ -5,7 +5,6 @@
|
||||
, stdenv
|
||||
, callPackage
|
||||
, cacert
|
||||
, git
|
||||
, cargoBuildHook
|
||||
, cargoCheckHook
|
||||
, cargoInstallHook
|
||||
@ -125,7 +124,6 @@ stdenv.mkDerivation ((removeAttrs args [ "depsExtraArgs" "cargoUpdateHook" "carg
|
||||
})
|
||||
] ++ [
|
||||
cacert
|
||||
git
|
||||
cargoBuildHook
|
||||
(if useNextest then cargoNextestHook else cargoCheckHook)
|
||||
cargoInstallHook
|
||||
|
@ -13,7 +13,6 @@ rec {
|
||||
};
|
||||
|
||||
buildRustPackage = callPackage ../../../build-support/rust/build-rust-package {
|
||||
git = buildPackages.gitMinimal;
|
||||
inherit stdenv cargoBuildHook cargoCheckHook cargoInstallHook cargoNextestHook cargoSetupHook
|
||||
fetchCargoTarball importCargoLock rustc;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user