unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "Georges Dupéron" <jahvascriptmaniac@gmail.com>
To: help-guix@gnu.org
Subject: Including sources in guix archive --export
Date: Thu, 13 Sep 2018 23:12:58 +0200	[thread overview]
Message-ID: <1536873178.22035.0@smtp.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2018-09-13 21:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-13 21:12 Georges Dupéron [this message]
2018-09-14 10:00 ` Including sources in guix archive --export 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1536873178.22035.0@smtp.gmail.com \
    --to=jahvascriptmaniac@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).