Skip to content
Snippets Groups Projects
Commit 53f52c21 authored by Shea Levy's avatar Shea Levy Committed by Eelco Dolstra
Browse files

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

parent 543bf742
No related branches found
No related tags found
No related merge requests found
......@@ -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 != "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment