From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Using Guix archive (Help!) Date: Sat, 06 Jan 2018 13:46:18 +0100 Message-ID: <878tdb40kl.fsf@elephly.net> References: <20180103110836.GA15026@thebird.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXnsE-0003Zj-3Y for guix-devel@gnu.org; Sat, 06 Jan 2018 07:46:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eXnsA-0003Sp-Pq for guix-devel@gnu.org; Sat, 06 Jan 2018 07:46:54 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21035) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eXnsA-0003SP-Hq for guix-devel@gnu.org; Sat, 06 Jan 2018 07:46:50 -0500 In-reply-to: <20180103110836.GA15026@thebird.nl> 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 Prins Cc: guix-devel@gnu.org, "Frederick M. Muriithi" Hi Pjotr, > somehow propagated-inputs don't go into the archive. You'd think they are= critical > dependencies. > > Q1: is that to be expected? I=E2=80=99m not sure, but it seems wrong. What I used to do is to create a profile and export that recursively: guix archive --export --recursive \ $(readlink -f /project/.guix-profile) | \ gzip --stdout - > my-profile.nar.gz This should include propagated inputs. > NAR files are signed. I think it would be very useful to be able to > distribute unsigned NAR files. > > Q2: can signing/checking be made optional? > I can't view the contents. > > Q3: how do we view the contents of a NAR file without unpacking it? I don=E2=80=99t think you can. It=E2=80=99s a custom format implemented by nix/libutil/archive.cc. > Q4: is there a nice way to include a profile path in the store that > can be used quickly? What do you mean by =E2=80=9Cinclude =E2=80=A6 in the store=E2=80=9D? With= the above command to recursively export profiles you get a single archive that can be imported to the store as a profile. > Q5: is there an elegant way to add those unpacked store items to the > database? What unpacked store items do you mean? -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net