mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Add BLAKE3 to documentation
This commit is contained in:
parent
1f56ea4c72
commit
7fd2125573
4 changed files with 4 additions and 3 deletions
|
@ -67,7 +67,7 @@ md5sum`.
|
||||||
- `--type` *hashAlgo*
|
- `--type` *hashAlgo*
|
||||||
|
|
||||||
Use the specified cryptographic hash algorithm, which can be one of
|
Use the specified cryptographic hash algorithm, which can be one of
|
||||||
`md5`, `sha1`, `sha256`, and `sha512`.
|
`blake3`, `md5`, `sha1`, `sha256`, and `sha512`.
|
||||||
|
|
||||||
- `--to-base16`
|
- `--to-base16`
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ the path of the downloaded file in the Nix store is also printed.
|
||||||
- `--type` *hashAlgo*
|
- `--type` *hashAlgo*
|
||||||
|
|
||||||
Use the specified cryptographic hash algorithm,
|
Use the specified cryptographic hash algorithm,
|
||||||
which can be one of `md5`, `sha1`, `sha256`, and `sha512`.
|
which can be one of `blake3`, `md5`, `sha1`, `sha256`, and `sha512`.
|
||||||
The default is `sha256`.
|
The default is `sha256`.
|
||||||
|
|
||||||
- `--print-path`
|
- `--print-path`
|
||||||
|
|
|
@ -192,7 +192,7 @@ Derivations can declare some infrequently used optional attributes.
|
||||||
The [`convertHash`](@docroot@/language/builtins.md#builtins-convertHash) function shows how to convert between different encodings, and the [`nix-hash` command](../command-ref/nix-hash.md) has information about obtaining the hash for some contents, as well as converting to and from encodings.
|
The [`convertHash`](@docroot@/language/builtins.md#builtins-convertHash) function shows how to convert between different encodings, and the [`nix-hash` command](../command-ref/nix-hash.md) has information about obtaining the hash for some contents, as well as converting to and from encodings.
|
||||||
|
|
||||||
The `outputHashAlgo` attribute specifies the hash algorithm used to compute the hash.
|
The `outputHashAlgo` attribute specifies the hash algorithm used to compute the hash.
|
||||||
It can currently be `"sha1"`, `"sha256"`, `"sha512"`, or `null`.
|
It can currently be `"blake3", "sha1"`, `"sha256"`, `"sha512"`, or `null`.
|
||||||
`outputHashAlgo` can only be `null` when `outputHash` follows the SRI format.
|
`outputHashAlgo` can only be `null` when `outputHash` follows the SRI format.
|
||||||
|
|
||||||
The `outputHashMode` attribute determines how the hash is computed.
|
The `outputHashMode` attribute determines how the hash is computed.
|
||||||
|
|
|
@ -38,6 +38,7 @@ is a JSON object with the following fields:
|
||||||
For an output which will be [content addresed], the name of the hash algorithm used.
|
For an output which will be [content addresed], the name of the hash algorithm used.
|
||||||
Valid algorithm strings are:
|
Valid algorithm strings are:
|
||||||
|
|
||||||
|
- `blake3`
|
||||||
- `md5`
|
- `md5`
|
||||||
- `sha1`
|
- `sha1`
|
||||||
- `sha256`
|
- `sha256`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue