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

This commit is contained in:
Shea Levy
2012-07-09 15:29:49 -04:00
committed by Eelco Dolstra
parent a994eb92a4
commit f863673a90
2 changed files with 2 additions and 3 deletions
+2 -1
View File
@@ -10,7 +10,8 @@ assert (outputHash != "" && outputHashAlgo != "")
derivation {
name = baseNameOf (toString url);
builder = ./fetchurl.sh;
builder = shell;
args = [ "-e" ./fetchurl.sh ];
# Compatibility with Nix <= 0.7.
id = md5;
-2
View File
@@ -1,5 +1,3 @@
#! @shell@ -e
echo "downloading $url into $out"
$curl --fail --location --max-redirs 20 "$url" > "$out"