diff options
author | Shea Levy <shea@shealevy.com> | 2012-07-08T15·04-0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-09T19·29-0400 |
commit | 53f52c2111bcf339bdaab703a263fd2c001da51c (patch) | |
tree | 9224dce198027c1d89dca0dc15094971888a430f /corepkgs | |
parent | 543bf742c9391bc49f59c52adb042bbd3c5e2364 (diff) |
corepkgs/fetchurl: the 'system' argument can be optional
Diffstat (limited to 'corepkgs')
-rw-r--r-- | corepkgs/fetchurl.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/corepkgs/fetchurl.nix b/corepkgs/fetchurl.nix index 72107294c72a..3d467fe187b0 100644 --- a/corepkgs/fetchurl.nix +++ b/corepkgs/fetchurl.nix @@ -3,7 +3,7 @@ with import <nix/config.nix>; # Argh, this thing is duplicated (more-or-less) in Nixpkgs. Need to # find a way to combine them. -{system, url, outputHash ? "", outputHashAlgo ? "", md5 ? "", sha1 ? "", sha256 ? ""}: +{system ? builtins.currentSystem, url, outputHash ? "", outputHashAlgo ? "", md5 ? "", sha1 ? "", sha256 ? ""}: assert (outputHash != "" && outputHashAlgo != "") || md5 != "" || sha1 != "" || sha256 != ""; |