diff options
author | Peter Simons <simons@cryp.to> | 2015-11-29 15:40:58 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2015-11-29 15:43:56 +0100 |
commit | 2cf7069b7da368326b51520536ac0f1020157f7a (patch) | |
tree | 3de063a2b2a554d6ed1bbe56e7097f5a011d2252 /pkgs | |
parent | b97f5e8b3357e1ed471dbbee76d8abeb747bcd54 (diff) |
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')
-rw-r--r-- | pkgs/build-support/fetchgit/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchgit/default.nix b/pkgs/build-support/fetchgit/default.nix index 8ddb6a85d0c21..c73ee1935196e 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"; |