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

authored by Atemu and committed by zowoq 3eec3c8f 7843a268

-3
-2
pkgs/build-support/rust/build-rust-package/default.nix
··· 5 , stdenv 6 , callPackage 7 , cacert 8 - , git 9 , cargoBuildHook 10 , cargoCheckHook 11 , cargoInstallHook ··· 125 }) 126 ] ++ [ 127 cacert 128 - git 129 cargoBuildHook 130 (if useNextest then cargoNextestHook else cargoCheckHook) 131 cargoInstallHook
··· 5 , stdenv 6 , callPackage 7 , cacert 8 , cargoBuildHook 9 , cargoCheckHook 10 , cargoInstallHook ··· 124 }) 125 ] ++ [ 126 cacert 127 cargoBuildHook 128 (if useNextest then cargoNextestHook else cargoCheckHook) 129 cargoInstallHook
-1
pkgs/development/compilers/rust/make-rust-platform.nix
··· 13 }; 14 15 buildRustPackage = callPackage ../../../build-support/rust/build-rust-package { 16 - git = buildPackages.gitMinimal; 17 inherit stdenv cargoBuildHook cargoCheckHook cargoInstallHook cargoNextestHook cargoSetupHook 18 fetchCargoTarball importCargoLock rustc; 19 };
··· 13 }; 14 15 buildRustPackage = callPackage ../../../build-support/rust/build-rust-package { 16 inherit stdenv cargoBuildHook cargoCheckHook cargoInstallHook cargoNextestHook cargoSetupHook 17 fetchCargoTarball importCargoLock rustc; 18 };