forked from lix-project/lix
<nix/fetchurl.nix>: Support sha512 argument
This commit is contained in:
parent
0a5a867758
commit
fe97c69898
|
@ -1,10 +1,10 @@
|
||||||
{ system ? builtins.currentSystem
|
{ system ? builtins.currentSystem
|
||||||
, url
|
, url
|
||||||
, md5 ? "", sha1 ? "", sha256 ? ""
|
, md5 ? "", sha1 ? "", sha256 ? "", sha512 ? ""
|
||||||
, outputHash ?
|
, outputHash ?
|
||||||
if sha1 != "" then sha1 else if md5 != "" then md5 else sha256
|
if sha512 != "" then sha512 else if sha1 != "" then sha1 else if md5 != "" then md5 else sha256
|
||||||
, outputHashAlgo ?
|
, outputHashAlgo ?
|
||||||
if sha1 != "" then "sha1" else if md5 != "" then "md5" else "sha256"
|
if sha512 != "" then "sha512" else if sha1 != "" then "sha1" else if md5 != "" then "md5" else "sha256"
|
||||||
, executable ? false
|
, executable ? false
|
||||||
, unpack ? false
|
, unpack ? false
|
||||||
, name ? baseNameOf (toString url)
|
, name ? baseNameOf (toString url)
|
||||||
|
|
Loading…
Reference in a new issue