From 1f05c38ab8b237f98bd2efba3fd3a0c90b5b4e28 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 6 Sep 2024 07:27:17 +0200 Subject: [PATCH] fetchgit: now accepts nativeBuildInputs, similar to e.g. fetchzip, fetchpatch --- pkgs/build-support/fetchgit/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/fetchgit/default.nix b/pkgs/build-support/fetchgit/default.nix index fd267fe34de8..58db9549047b 100644 --- a/pkgs/build-support/fetchgit/default.nix +++ b/pkgs/build-support/fetchgit/default.nix @@ -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";