Skip to content
Snippets Groups Projects
Unverified Commit fe97c698 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

<nix/fetchurl.nix>: Support sha512 argument

parent 0a5a8677
No related branches found
No related tags found
No related merge requests found
{ system ? builtins.currentSystem
, url
, md5 ? "", sha1 ? "", sha256 ? ""
, md5 ? "", sha1 ? "", sha256 ? "", sha512 ? ""
, 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 ?
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
, unpack ? false
, name ? baseNameOf (toString url)
......
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