Unverified Commit 9d52ae0f authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

fetchgit: accept nativeBuildInputs (#339989)

parents 4cb916c9 1f05c38a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ lib.makeOverridable (lib.fetchers.withNormalizedHash { } (
, sparseCheckout ? []
, nonConeMode ? false
, name ? null
, nativeBuildInputs ? []
, # Shell code executed after the file has been fetched
  # successfully. This can do things like check or transform the file.
  postFetch ? ""
@@ -90,7 +91,8 @@ stdenvNoCC.mkDerivation {
  fetcher = ./nix-prefetch-git;

  nativeBuildInputs = [ git cacert ]
    ++ lib.optionals fetchLFS [ git-lfs ];
    ++ lib.optionals fetchLFS [ git-lfs ]
    ++ nativeBuildInputs;

  inherit outputHash outputHashAlgo;
  outputHashMode = "recursive";