about summary refs log tree commit diff
path: root/pkgs/build-support/fetchgit
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2015-11-29 15:40:58 +0100
committerPeter Simons <simons@cryp.to>2015-11-29 15:43:56 +0100
commit2cf7069b7da368326b51520536ac0f1020157f7a (patch)
tree3de063a2b2a554d6ed1bbe56e7097f5a011d2252 /pkgs/build-support/fetchgit
parentb97f5e8b3357e1ed471dbbee76d8abeb747bcd54 (diff)
downloadnixlib-2cf7069b7da368326b51520536ac0f1020157f7a.tar
nixlib-2cf7069b7da368326b51520536ac0f1020157f7a.tar.gz
nixlib-2cf7069b7da368326b51520536ac0f1020157f7a.tar.bz2
nixlib-2cf7069b7da368326b51520536ac0f1020157f7a.tar.lz
nixlib-2cf7069b7da368326b51520536ac0f1020157f7a.tar.xz
nixlib-2cf7069b7da368326b51520536ac0f1020157f7a.tar.zst
nixlib-2cf7069b7da368326b51520536ac0f1020157f7a.zip
fetchgit: call in-repository script with bash explicitly
The script's shebang depends on /usr/bin/env, which we don't have in chroot
environments. This patch remedies the fallout from ade9f7167dd1fec6, which
fixed https://github.com/NixOS/nixpkgs/issues/11284.
Diffstat (limited to 'pkgs/build-support/fetchgit')
-rw-r--r--pkgs/build-support/fetchgit/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchgit/default.nix b/pkgs/build-support/fetchgit/default.nix
index 8ddb6a85d0c2..c73ee1935196 100644
--- a/pkgs/build-support/fetchgit/default.nix
+++ b/pkgs/build-support/fetchgit/default.nix
@@ -45,7 +45,7 @@ assert deepClone -> leaveDotGit;
 stdenv.mkDerivation {
   inherit name;
   builder = ./builder.sh;
-  fetcher = ./nix-prefetch-git;
+  fetcher = "${stdenv.shell} ${./nix-prefetch-git}";
   buildInputs = [git];
 
   outputHashAlgo = if sha256 == "" then "md5" else "sha256";