Skip to content

Commit

Permalink
legacy: Add sha512 as a supported hash type
Browse files Browse the repository at this point in the history
  • Loading branch information
hedning committed Nov 22, 2017
1 parent 6103d10 commit 26017d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _nix-hash
Expand Up @@ -12,5 +12,5 @@ _arguments \
"($ig)--flat[Print hash of regular files rather than their NAR dump]" \
"($ig)--base32[Print hash in base 32 rather than hexadecimal]" \
"($ig)--truncate[Truncate hashes to 160 bits]" \
"($ig)--type[Hash algorithm to use]:hashAlgo:(md5 sha1 sha256)" \
"($ig)--type[Hash algorithm to use]:hashAlgo:(md5 sha1 sha256 sha512)" \
"($ig)*:Store Paths:_files" && return 0
2 changes: 1 addition & 1 deletion _nix-prefetch-url
Expand Up @@ -4,6 +4,6 @@
_nix-common-options

_arguments \
'--type[Use the specified cryptographic hash algorithm]:Hash Algorithm:(md5 sha1 sha256)'\
'--type[Use the specified cryptographic hash algorithm]:Hash Algorithm:(md5 sha1 sha256 sha512)'\
'1:URL:_urls'\
'2::Hash:( )'

0 comments on commit 26017d3

Please sign in to comment.