corepkgs/fetchurl: the 'system' argument can be optional

This commit is contained in:
Shea Levy 2012-07-08 11:04:11 -04:00 committed by Eelco Dolstra
parent 543bf742c9
commit 53f52c2111
1 changed files with 1 additions and 1 deletions

View File

@ -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 != "";