on iko/ghcjs-patch-master help sign in
Use gitMinimal in call-cabal-project-to-nix (#1387)

This was using full `git`, which isn't part of the project `roots`, and so would often not be cached. I don't know how this ended up not being problematic before, since this has been here for a while...

commit4751dc70a602ce7bfe9876ddb18bf712d41b1c19 authorMichael Peyton Jones <michael.peyton-jones@iohk.io> dateWed 2 Mar 2022, 23:44 (5 years ago) parent50c6984
1 file changed+2−2
lib/call-cabal-project-to-nix.nix+2−2
lib/call-cabal-project-to-nix.nix+2−2
@@ -207,7 +207,7 @@ let
207207 # Download the source-repository-package commit and add it to a minimal git
208208 # repository that `cabal` will be able to access from a non fixed output derivation.
209209 location = pkgs.evalPackages.runCommand "source-repository-package" {
210− nativeBuildInputs = [ pkgs.evalPackages.rsync pkgs.evalPackages.git ];
210+ nativeBuildInputs = [ pkgs.evalPackages.rsync pkgs.evalPackages.gitMinimal ];
211211 } ''
212212 mkdir $out
213213 rsync -a --prune-empty-dirs "${fetched}/" "$out/"
@@ -437,7 +437,7 @@ let
437437 } // pkgs.lib.optionalAttrs (checkMaterialization != null) {
438438 inherit checkMaterialization;
439439 }) (pkgs.evalPackages.runCommand (nameAndSuffix "plan-to-nix-pkgs") {
440− nativeBuildInputs = [ nix-tools dummy-ghc dummy-ghc-pkg cabal-install pkgs.evalPackages.rsync pkgs.evalPackages.git ];
440+ nativeBuildInputs = [ nix-tools dummy-ghc dummy-ghc-pkg cabal-install pkgs.evalPackages.rsync pkgs.evalPackages.gitMinimal ];
441441 # Needed or stack-to-nix will die on unicode inputs
442442 LOCALE_ARCHIVE = pkgs.lib.optionalString (pkgs.evalPackages.stdenv.buildPlatform.libc == "glibc") "${pkgs.evalPackages.glibcLocales}/lib/locale/locale-archive";
443443 LANG = "en_US.UTF-8";