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 ade9f7167d
, which
fixed https://github.com/NixOS/nixpkgs/issues/11284.
This commit is contained in:
parent
b97f5e8b33
commit
2cf7069b7d
@ -45,7 +45,7 @@ assert deepClone -> leaveDotGit;
|
|||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
inherit name;
|
inherit name;
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
fetcher = ./nix-prefetch-git;
|
fetcher = "${stdenv.shell} ${./nix-prefetch-git}";
|
||||||
buildInputs = [git];
|
buildInputs = [git];
|
||||||
|
|
||||||
outputHashAlgo = if sha256 == "" then "md5" else "sha256";
|
outputHashAlgo = if sha256 == "" then "md5" else "sha256";
|
||||||
|
Loading…
Reference in New Issue
Block a user