about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--corepkgs/fetchurl.nix3
-rw-r--r--corepkgs/fetchurl.sh2
2 files changed, 2 insertions, 3 deletions
diff --git a/corepkgs/fetchurl.nix b/corepkgs/fetchurl.nix
index 758212015a..72107294c7 100644
--- a/corepkgs/fetchurl.nix
+++ b/corepkgs/fetchurl.nix
@@ -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;
diff --git a/corepkgs/fetchurl.sh b/corepkgs/fetchurl.sh
index 608a946ab8..6d35794caf 100644
--- a/corepkgs/fetchurl.sh
+++ b/corepkgs/fetchurl.sh
@@ -1,5 +1,3 @@
-#! @shell@ -e
-
 echo "downloading $url into $out"
 
 $curl --fail --location --max-redirs 20 "$url" > "$out"