diff options
author | Ryan Lahfa <tvl@lahfa.xyz> | 2024-08-12T16·15+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-08-19T19·18+0000 |
commit | 7612cb4c31fadd7ccaa7672cf551b9d21d7884b4 (patch) | |
tree | ba4525f40ddc395287700ae9f9612f9874982fe8 /tvix/nix-compat/src/nar/tests/nixos-release.ls | |
parent | 73e16c18552d0bd6866fad7e8f87fb74faeca1e4 (diff) |
feat(tvix/nix-compat): add a basic listing deserializer r/8539
.ls files are useful to seek in a NAR without parsing it entirely. The responsibility of validating the files is on the caller. Change-Id: I5d1da28b5479c38f20ca5babe60e362a2217c9ea Signed-off-by: Ryan Lahfa <tvl@lahfa.xyz> Reviewed-on: https://cl.tvl.fyi/c/depot/+/12196 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/nix-compat/src/nar/tests/nixos-release.ls')
-rw-r--r-- | tvix/nix-compat/src/nar/tests/nixos-release.ls | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/nix-compat/src/nar/tests/nixos-release.ls b/tvix/nix-compat/src/nar/tests/nixos-release.ls new file mode 100644 index 000000000000..9dd350b7cf86 --- /dev/null +++ b/tvix/nix-compat/src/nar/tests/nixos-release.ls @@ -0,0 +1 @@ +{"root":{"entries":{"iso":{"entries":{"nixos-minimal-new-kernel-no-zfs-24.11pre660688.bee6b69aad74-x86_64-linux.iso":{"narOffset":440,"size":1051721728,"type":"regular"}},"type":"directory"},"nix-support":{"entries":{"hydra-build-products":{"narOffset":1051722544,"size":211,"type":"regular"},"system":{"narOffset":1051722944,"size":13,"type":"regular"}},"type":"directory"}},"type":"directory"},"version":1} \ No newline at end of file |