From 53f52c2111bcf339bdaab703a263fd2c001da51c Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sun, 8 Jul 2012 11:04:11 -0400 Subject: [PATCH] corepkgs/fetchurl: the 'system' argument can be optional --- corepkgs/fetchurl.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corepkgs/fetchurl.nix b/corepkgs/fetchurl.nix index 72107294c7..3d467fe187 100644 --- a/corepkgs/fetchurl.nix +++ b/corepkgs/fetchurl.nix @@ -3,7 +3,7 @@ with import ; # 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 != "";