fetchgit: now accepts nativeBuildInputs, similar to e.g. fetchzip, fetchpatch

This commit is contained in:
Alex
2025-02-25 17:08:26 -08:00
committed by Philip Taron
parent 4234f966e8
commit 1f05c38ab8
+3 -1
View File
@@ -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";