Valid Nix store path names: Difference between revisions
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 Category:Nix added |
||
(One intermediate revision by one other user 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 == | ||
Line 12: | Line 12: | ||
* 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 19:48, 13 September 2024
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