1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 03:56:01 +01:00

Fix documentation of the NAR archive structure

For regular, non-executable files, there is no str("") between str("regular")
and str("contents"). Note that str("") is exactly 8 zero bytes, while just ""
is actual empty string (0 bytes).
This commit is contained in:
Dmitry Bogatov 2025-07-22 20:00:00 -04:00
parent 7ff426627d
commit 143b87c1a9

View file

@ -24,7 +24,7 @@ nar-obj-inner
| str("type"), str("directory") directory | str("type"), str("directory") directory
; ;
regular = [ str("executable"), str("") ], str("contents"), str(contents); regular = [ str("executable") ], str("contents"), str(contents);
symlink = str("target"), str(target); symlink = str("target"), str(target);