mirror of
https://github.com/NixOS/nix.git
synced 2025-12-13 04:21:04 +01:00
The fact that we were introducing a conversion from the output of `nix path-info` into the input of `builtins.fetchTree` was the deciding factor. We want scripting outputs into inputs like that to be easy. Since JSON strings and objects are trivially distinguishable, we still have the option of introducing the JSON format as an alternative input scheme in the future, should we want to. (The output format would still be SRI in that case, presumably.)
21 lines
281 B
Markdown
21 lines
281 B
Markdown
{{#include hash-v1-fixed.md}}
|
|
|
|
## Examples
|
|
|
|
### SHA-256
|
|
|
|
```json
|
|
{{#include schema/hash-v1/sha256.json}}
|
|
```
|
|
|
|
### BLAKE3
|
|
|
|
```json
|
|
{{#include schema/hash-v1/blake3.json}}
|
|
```
|
|
|
|
<!-- need to convert YAML to JSON first
|
|
## Raw Schema
|
|
|
|
[JSON Schema for Hash v1](schema/hash-v1.json)
|
|
-->
|