Valid Nix store path names: Difference between revisions
Appearance
imported>Milahu Created page with "All files and folders in <code>/nix/store</code> match the regular expression <syntaxHighlight> [0-9a-f]{32}-[-.+_0-9a-zA-Z]+ </syntaxHighlight> * <code>[0-9a-f]{32}</code>..." |
m link to nix store page |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
<syntaxHighlight> | <syntaxHighlight> | ||
[0-9a- | [0-9a-z]{32}-[-.+_?=0-9a-zA-Z]+ | ||
</syntaxHighlight> | </syntaxHighlight> | ||
* <code>[0-9a-f]{32}</code> is the hash | * <code>[0-9a-f]{32}</code> is the hash | ||
* <code>[-.+ | * <code>[-.+_?=0-9a-zA-Z]+</code> is the name | ||
== See also == | == See also == | ||
* [[Nix package manager#Internals]] | |||
* https://discourse.nixos.org/t/clarification-on-package-names-and-versions/9819/8 | * https://discourse.nixos.org/t/clarification-on-package-names-and-versions/9819/8 | ||
* function <code>checkName</code> in https://github.com/NixOS/nix/blob/master/src/libstore/path.cc | * function <code>checkName</code> in https://github.com/NixOS/nix/blob/master/src/libstore/path.cc | ||
[[Category:Nix]] |
Latest revision as of 17:17, 1 June 2025
All files and folders in /nix/store
match the regular expression
[0-9a-z]{32}-[-.+_?=0-9a-zA-Z]+
[0-9a-f]{32}
is the hash[-.+_?=0-9a-zA-Z]+
is the name