summary refs log tree commit diff
path: root/corepkgs
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2012-07-08 10:32:12 -0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-09 15:29:49 -0400
commita994eb92a4e0d8744b244cd421c855d76831bdc0 (patch)
tree3697e5298dd6e6b7334c41ee2a49cb9c9e604b9e /corepkgs
parent9d94a28bed39d0e9bcb3532cdac1a254a44efa97 (diff)
downloadguix-a994eb92a4e0d8744b244cd421c855d76831bdc0.tar.gz
corepkgs/fetchurl.sh: Use config.nix's curl
Diffstat (limited to 'corepkgs')
-rw-r--r--corepkgs/fetchurl.nix4
-rw-r--r--corepkgs/fetchurl.sh2
2 files changed, 4 insertions, 2 deletions
diff --git a/corepkgs/fetchurl.nix b/corepkgs/fetchurl.nix
index c85c007ff2..758212015a 100644
--- a/corepkgs/fetchurl.nix
+++ b/corepkgs/fetchurl.nix
@@ -1,3 +1,5 @@
+with import <nix/config.nix>;
+
 # Argh, this thing is duplicated (more-or-less) in Nixpkgs.  Need to
 # find a way to combine them.
 
@@ -19,5 +21,5 @@ derivation {
   outputHash = if outputHash != "" then outputHash else
       if sha256 != "" then sha256 else if sha1 != "" then sha1 else md5;
   
-  inherit system url;
+  inherit system url curl;
 }
diff --git a/corepkgs/fetchurl.sh b/corepkgs/fetchurl.sh
index 02abb18b4b..608a946ab8 100644
--- a/corepkgs/fetchurl.sh
+++ b/corepkgs/fetchurl.sh
@@ -2,4 +2,4 @@
 
 echo "downloading $url into $out"
 
-@curl@ --fail --location --max-redirs 20 "$url" > "$out"
+$curl --fail --location --max-redirs 20 "$url" > "$out"