Skip to content

Commit 3eec3c8

Browse files
Atemuzowoq
authored andcommitted
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 #205682 for instance. AFAICT git is unused. Only the fetcher needs git which it has already. Fixes #205804
1 parent 7843a26 commit 3eec3c8

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

pkgs/build-support/rust/build-rust-package/default.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
, stdenv
66
, callPackage
77
, cacert
8-
, git
98
, cargoBuildHook
109
, cargoCheckHook
1110
, cargoInstallHook
@@ -125,7 +124,6 @@ stdenv.mkDerivation ((removeAttrs args [ "depsExtraArgs" "cargoUpdateHook" "carg
125124
})
126125
] ++ [
127126
cacert
128-
git
129127
cargoBuildHook
130128
(if useNextest then cargoNextestHook else cargoCheckHook)
131129
cargoInstallHook

pkgs/development/compilers/rust/make-rust-platform.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ rec {
1313
};
1414

1515
buildRustPackage = callPackage ../../../build-support/rust/build-rust-package {
16-
git = buildPackages.gitMinimal;
1716
inherit stdenv cargoBuildHook cargoCheckHook cargoInstallHook cargoNextestHook cargoSetupHook
1817
fetchCargoTarball importCargoLock rustc;
1918
};

0 commit comments

Comments
 (0)