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