corepkgs/fetchurl: Call the shell directly instead of using the shebang

This commit is contained in:
Shea Levy 2012-07-08 10:33:40 -04:00 committed by Eelco Dolstra
parent a994eb92a4
commit f863673a90
2 changed files with 2 additions and 3 deletions

View file

@ -10,7 +10,8 @@ assert (outputHash != "" && outputHashAlgo != "")
derivation { derivation {
name = baseNameOf (toString url); name = baseNameOf (toString url);
builder = ./fetchurl.sh; builder = shell;
args = [ "-e" ./fetchurl.sh ];
# Compatibility with Nix <= 0.7. # Compatibility with Nix <= 0.7.
id = md5; id = md5;

View file

@ -1,5 +1,3 @@
#! @shell@ -e
echo "downloading $url into $out" echo "downloading $url into $out"
$curl --fail --location --max-redirs 20 "$url" > "$out" $curl --fail --location --max-redirs 20 "$url" > "$out"