[Top][All Lists]

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

Including sources in guix archive --export

From: Georges Dupéron
Subject: Including sources in guix archive --export
Date: Thu, 13 Sep 2018 23:12:58 +0200


Is it possible to export a .nar including the sources necessary to rebuild that package?

I tried running these commands on the host:

sudo guix archive --generate-key
guix archive --export --recursive hello > hello.nar

And these commands inside a fresh, minimal GUIX environment without network access:

guix archive --authorize <
guix archive --import < hello.nar
$(guix build hello)/bin/hello # works
guix build --check hello # fails

The above fails because it tries to download the sources:

Starting download of /gnu/store/…-hello-2.10.tar.gz
From https://gtpmirror.gnu.or/gnu/hello/hello-2.10.tar.gz...
In procedure getaddringo: Name or service not known

I have created at a small automated environment which creates the archive, creates a QEMU VM with a minimalistic Guix configuration, copies the .nar archive inside the VM and tries the commands above.

Georges Dupéron

reply via email to

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