1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

Improve the documentation of store path

# Conflicts:
#	doc/manual/source/protocols/store-path.md

(cherry picked from commit 355a923e81)
This commit is contained in:
oldshensheep 2025-03-18 18:01:40 +08:00 committed by Mergify
parent 64fb6ab435
commit ce8b1eb2c4

View file

@ -7,7 +7,7 @@ The format of this specification is close to [Extended BackusNaur form](https
Regular users do *not* need to know this information --- store paths can be treated as black boxes computed from the properties of the store objects they refer to. Regular users do *not* need to know this information --- store paths can be treated as black boxes computed from the properties of the store objects they refer to.
But for those interested in exactly how Nix works, e.g. if they are reimplementing it, this information can be useful. But for those interested in exactly how Nix works, e.g. if they are reimplementing it, this information can be useful.
[store path](@docroot@/store/store-path.md) [store path]: @docroot@/store/store-path.md
## Store path proper ## Store path proper
@ -30,7 +30,7 @@ the end, while base-16 processes in from the beginning.
## Fingerprint ## Fingerprint
- ```ebnf - ```ebnf
fingerprint = type ":" sha256 ":" inner-digest ":" store ":" name fingerprint = type ":sha256:" inner-digest ":" store ":" name
``` ```
Note that it includes the location of the store as well as the name to make sure that changes to either of those are reflected in the hash Note that it includes the location of the store as well as the name to make sure that changes to either of those are reflected in the hash