From 2cf7069b7da368326b51520536ac0f1020157f7a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 29 Nov 2015 15:40:58 +0100 Subject: 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. --- pkgs/build-support/fetchgit/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/build-support/fetchgit') 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"; -- cgit 1.4.1