forked from lix-project/lix
<nix/fetchurl.nix>: Don't access builtins.currentSystem
This doesn't work in pure evaluation mode.
This commit is contained in:
parent
75b9670df6
commit
6ddfe9a999
|
@ -1,4 +1,4 @@
|
||||||
{ system ? builtins.currentSystem
|
{ system ? "" # obsolete
|
||||||
, url
|
, url
|
||||||
, md5 ? "", sha1 ? "", sha256 ? "", sha512 ? ""
|
, md5 ? "", sha1 ? "", sha256 ? "", sha512 ? ""
|
||||||
, outputHash ?
|
, outputHash ?
|
||||||
|
@ -17,7 +17,9 @@ derivation {
|
||||||
inherit outputHashAlgo outputHash;
|
inherit outputHashAlgo outputHash;
|
||||||
outputHashMode = if unpack || executable then "recursive" else "flat";
|
outputHashMode = if unpack || executable then "recursive" else "flat";
|
||||||
|
|
||||||
inherit name system url executable unpack;
|
inherit name url executable unpack;
|
||||||
|
|
||||||
|
system = "builtin";
|
||||||
|
|
||||||
# No need to double the amount of network traffic
|
# No need to double the amount of network traffic
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
|
|
Loading…
Reference in a new issue