unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Including sources in guix archive --export
@ 2018-09-13 21:12 Georges Dupéron
  2018-09-14 10:00 ` Ludovic Courtès
  0 siblings, 1 reply; 8+ messages in thread
From: Georges Dupéron @ 2018-09-13 21:12 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 1025 bytes --]

Hi!

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 < signing-key.pub
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 
https://github.com/jsmaniac/guix-reproducible-system/tree/guix-question 
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.

Thanks,
Georges Dupéron

[-- Attachment #2: Type: text/html, Size: 1498 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-10-02 12:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-13 21:12 Including sources in guix archive --export Georges Dupéron
2018-09-14 10:00 ` Ludovic Courtès
2018-09-20 18:50   ` Dupéron Georges
2018-09-24 15:29     ` Ludovic Courtès
2018-09-24 19:30       ` Dupéron Georges
2018-10-02  9:57         ` Ludovic Courtès
2018-10-02 11:49           ` Georges Dupéron
2018-10-02 12:10             ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).