guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Guix archive (Help!)


From: Tobias Geerinckx-Rice
Subject: Re: Using Guix archive (Help!)
Date: Mon, 8 Jan 2018 16:15:52 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]