help-guix
[Top][All Lists]
Advanced

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

`example' package cannot be installed from a `nar' archive without netwo


From: Pierre-Henry Fröhring
Subject: `example' package cannot be installed from a `nar' archive without network access.
Date: Tue, 21 Dec 2021 10:23:21 +0100
User-agent: Evolution 3.36.5-0ubuntu1

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/
  └────

reply via email to

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