1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-14 22:42:41 +01:00
nix/doc/manual
Alex Auvolat ddc3fba9fb doc: fix "Nix Archive (NAR) format" specification
For executable files in NAR archives, the `executable` tag is followed
by an empty string, which was not indicated correctly in the
specification.

Adding the empty string can be seen in `src/libutil/archive.cc:62`.

Here is an example of a hexdump of a NAR archives where this empty
string can be seen:

```
00000730  65 6e 74 72 79 00 00 00  01 00 00 00 00 00 00 00  |entry...........|
00000740  28 00 00 00 00 00 00 00  04 00 00 00 00 00 00 00  |(...............|
00000750  6e 61 6d 65 00 00 00 00  10 00 00 00 00 00 00 00  |name............|
00000760  6c 69 62 6d 70 66 72 2e  73 6f 2e 36 2e 32 2e 31  |libmpfr.so.6.2.1|
00000770  04 00 00 00 00 00 00 00  6e 6f 64 65 00 00 00 00  |........node....|
00000780  01 00 00 00 00 00 00 00  28 00 00 00 00 00 00 00  |........(.......|
00000790  04 00 00 00 00 00 00 00  74 79 70 65 00 00 00 00  |........type....|
000007a0  07 00 00 00 00 00 00 00  72 65 67 75 6c 61 72 00  |........regular.|
000007b0  0a 00 00 00 00 00 00 00  65 78 65 63 75 74 61 62  |........executab|
000007c0  6c 65 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |le..............|
000007d0  08 00 00 00 00 00 00 00  63 6f 6e 74 65 6e 74 73  |........contents|
000007e0  a0 16 0c 00 00 00 00 00  7f 45 4c 46 02 01 01 00  |.........ELF....|
000007f0  00 00 00 00 00 00 00 00  03 00 3e 00 01 00 00 00  |..........>.....|
00000800  00 00 00 00 00 00 00 00  40 00 00 00 00 00 00 00  |........@.......|
00000810  e0 0e 0c 00 00 00 00 00  00 00 00 00 40 00 38 00  |............@.8.|
00000820  0b 00 40 00 1f 00 1e 00  01 00 00 00 04 00 00 00  |..@.............|
00000830  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
```

(taken from `09zrxnn4j5hjxqj93xvxrl1dpmq4cyajas3yf7a7y0i7h81m6bd4.nar`,
available on `cache.nixos.org`)
2025-11-12 20:16:00 +01:00
..
rl-next Merge pull request #14464 from lovesegfault/nix-s3-storage-class 2025-11-10 22:54:12 +00:00
source doc: fix "Nix Archive (NAR) format" specification 2025-11-12 20:16:00 +01:00
theme Document "hash derivation quotiented", resolution, and build trace 2025-11-03 15:18:18 -05:00
.version Build the manual with Meson 2024-10-09 11:58:17 -04:00
anchors.jq Fix links in the manual 2025-11-04 00:31:46 +01:00
book.toml.in Document "hash derivation quotiented", resolution, and build trace 2025-11-03 15:18:18 -05:00
custom.css doc/manual: fix misaligned icons in custom.css (#11296) 2024-08-14 14:27:12 +02:00
generate-builtins.nix Format .nix files 2025-01-24 17:04:02 +01:00
generate-deps.py fix various typos in docs 2025-05-14 21:29:17 +02:00
generate-manpage.nix Format .nix files 2025-01-24 17:04:02 +01:00
generate-settings.nix Format .nix files 2025-01-24 17:04:02 +01:00
generate-store-info.nix Stores no longer inherit from their configs 2025-05-13 15:56:35 -04:00
generate-store-types.nix Apply updated nixfmt 2025-11-03 12:01:55 +01:00
generate-xp-features-shortlist.nix Format .nix files 2025-01-24 17:04:02 +01:00
generate-xp-features.nix Format .nix files 2025-01-24 17:04:02 +01:00
meson.build Document "hash derivation quotiented", resolution, and build trace 2025-11-03 15:18:18 -05:00
package.nix Drop external*Inputs from packages 2025-11-07 15:24:26 -05:00
quote-literals.xsl Generate release notes again 2014-03-12 14:24:29 +01:00
redirects.js glossary: refine the definition of "package" 2025-04-10 22:50:28 +02:00
remove_before_wrapper.py Build the manual with Meson 2024-10-09 11:58:17 -04:00
render-manpage.sh Build the manual with Meson 2024-10-09 11:58:17 -04:00
substitute.py doc: Render verbatim @docroot@ on contributing page 2025-05-17 17:50:49 +02:00
utils.nix Format .nix files 2025-01-24 17:04:02 +01:00