From: "Pierre-Henry Fröhring" <contact@phfrohring.com>
To: help-guix@gnu.org
Subject: `example' package cannot be installed from a `nar' archive without network access.
Date: Tue, 21 Dec 2021 10:23:21 +0100 [thread overview]
Message-ID: <9ba2b792109f104cdf84874fbeabfe5f598dcf57.camel@phfrohring.com> (raw)
Hello Guix Help List,
I according to :
https://guix.gnu.org/manual/en/html_node/Invoking-guix-archive.html
It is expected that a `nar' archive is self contained.
--recursive
When combined with --export, this instructs guix archive to include dependencies of
the given items in the archive. Thus, the resulting archive is self-contained: it
contains the closure of the exported store items.
But I cannot get it to work.
You can find below steps that I use to reproduce the unexpected behaviour.
How to make it work ?
Thank you,
phf
Table of Contents
─────────────────
1. `example' cannot be installed from a `nar' archive without network access.
2. `example' package definition
1 `example' cannot be installed from a `nar' archive without network access.
════════════════════════════════════════════════════════════════════════════
`example.scm' is a package definition.
┌────
│ https://paste.debian.net/1224285/
└────
The package `example' is installed.
┌────
│ guix package --install-from-file=packages/example.scm
└────
`example-1.0.nar' is an archive built from the `example' package.
┌────
│ guix archive --export -r /gnu/store/fvdl3p26dyzfr6a7y9sa4wzw1fj9s488-example-1.0 > example-1.0.nar
└────
`example' is purged from the `store'.
┌────
│ guix remove example
│ guix package --delete-generations
│ guix gc
└────
`example' package is imported from `example-1.0.nar'.
┌────
│ guix archive --import < ./example-1.0.nar
└────
`example' cannot be installed from a `nar' archive without network access.
┌────
│ $ nmcli device disconnect enp1s0
│ $ guix install /gnu/store/fvdl3p26dyzfr6a7y9sa4wzw1fj9s488-example-1.0
│ guix install: erreur : some substitutes for the outputs of derivation
│ `/gnu/store/i6d2vz93mfnfy2x7x2g98c55cv966k71-texinfo-6.7.drv' failed (usually happens
│ due to networking issues); try `--fallback' to build derivation from source
└────
2 `example' package definition
══════════════════════════════
┌────
│ $ tree --charset ascii example
│ example
│ |-- configure
│ `-- Makefile
└────
`configure'
┌────
│ https://paste.debian.net/1224286/
└────
`Makefile'
┌────
│ https://paste.debian.net/1224287/
└────
next reply other threads:[~2021-12-21 14:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-21 9:23 Pierre-Henry Fröhring [this message]
2021-12-21 9:39 ` `example' package cannot be installed from a `nar' archive without network access Pierre-Henry Fröhring
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=9ba2b792109f104cdf84874fbeabfe5f598dcf57.camel@phfrohring.com \
--to=contact@phfrohring.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).