From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: Re: Using Guix archive (Help!) Date: Mon, 8 Jan 2018 16:15:52 +0100 Message-ID: References: <20180103110836.GA15026@thebird.nl> <878tdb40kl.fsf@elephly.net> <20180107091624.GA2981@thebird.nl> <20180107103211.GA3362@thebird.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYZ6p-0000JT-5l for guix-devel@gnu.org; Mon, 08 Jan 2018 10:13:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYZ6n-00040F-Qu for guix-devel@gnu.org; Mon, 08 Jan 2018 10:13:07 -0500 Received: from tobias.gr ([2001:470:cc92::1]:46470) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eYZ6n-0003z5-Cp for guix-devel@gnu.org; Mon, 08 Jan 2018 10:13:05 -0500 In-Reply-To: <20180107103211.GA3362@thebird.nl> Content-Language: en-GB List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: pjotr.public12@thebird.nl Cc: guix-devel@gnu.org, fredmanglis@protonmail.com 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