Pjotr, Pjotr Prins wrote on 07/01/18 at 11:32: > I have limited internet these weeks, but when I have more space I can > look at Nix tooling again. See if there is something to view the > contents of a nar file.
Apparently[0] Nix 1.12 has a new ‘nix’ UI or wrapper with direct support for listing NAR contents. It[1] seems to work on modern-day (decompressed) Guix NARs too: $ curl https://mirror.hydra.gnu.org/guix/nar\ > /gzip/5nhqwkvy7v51jd8lf4krljfbl01v6rx3-e2fsprogs-1.43.6 > my.nar.gz $ gunzip my.nar.gz $ /nix/store/*/bin/nix ls-nar -lR my.nar / dr-xr-xr-x 0 ./bin -r-xr-xr-x 18216 ./bin/chattr -r-xr-xr-x 1540 ./bin/compile_et -r-xr-xr-x 13888 ./bin/lsattr -r-xr-xr-x 1356 ./bin/mk_cmds dr-xr-xr-x 0 ./etc -r--r--r-- 808 ./etc/mke2fs.conf dr-xr-xr-x 0 ./include lrwxrwxrwx 0 ./include/com_err.h -> et/com_err.h dr-xr-xr-x 0 ./include/e2p [...] I haven't tried more than the above commands, nor do I use Nix anymore, nor do I have any idea how good or reusable the code is, but it's a start. Kind regards, T G-R [0]: https://github.com/NixOS/nix/issues/1257 [1]: https://hydra.nixos.org/build/67181169/download/1/nix-1.12pre5839_6e098968-x86_64-linux.tar.bz2