about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-09-22T13·48+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-09-22T13·48+0200
commitbbe2811a106b61aed1c69033ddcb29a175133bdc (patch)
tree7106bcba3fdf54b85bf68b4b323e4ec932469708
parent818ab58cc67a2b80f47d2cfcc1de2d07fe83a11f (diff)
<nix/fetchurl.nix>: Support nix-prefetch-url
-rw-r--r--corepkgs/fetchurl.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/corepkgs/fetchurl.nix b/corepkgs/fetchurl.nix
index 613c25364cc3..042705b1abb0 100644
--- a/corepkgs/fetchurl.nix
+++ b/corepkgs/fetchurl.nix
@@ -33,4 +33,7 @@ derivation {
     # by definition pure.
     "http_proxy" "https_proxy" "ftp_proxy" "all_proxy" "no_proxy"
   ];
+
+  # To make "nix-prefetch-url" work.
+  urls = [ url ];
 }