all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Pjotr Prins <pjotr.public12@thebird.nl>
Cc: guix-devel@gnu.org
Subject: Re: guix archive export/import and software deployment
Date: Sun, 06 Mar 2016 23:55:03 +0100	[thread overview]
Message-ID: <871t7ndxo8.fsf@gnu.org> (raw)
In-Reply-To: <20160306144132.GA1944@thebird.nl> (Pjotr Prins's message of "Sun, 6 Mar 2016 15:41:32 +0100")

Pjotr Prins <pjotr.public12@thebird.nl> skribis:

> Guix archive is not working well for me. What I want is to deploy a
> package with its runtime dependencies reliably from one machine to
> another and update the profile after so it can be run, with its
> propagated dependencies.
>
> Dependencies are not all included when exporting. In fact all R
> modules are missing, but python modules are included. Ludo's earlier
> comment suggests the package is visited and harvested for runtime
> links. Apparently the R modules are not linked. Even so, they are in
> the package definition, so we should be able to capture them.

This is tricky because ‘guix archive’ does not know about packages; it
works at a lower abstraction level.

> The second problem is that there is no elegant way to recreate the
> profile now for the full thing. Obviously I have a complex product ;)

What about ‘guix package --manifest’?  Does it help?

Otherwise, is it OK to pass the whole profile around, as with:

  guix archive --export $(readlink -f ~/.guix-profile) > profile.nar

?

You’d still have to manually link to this profile on the target machine,
though:

  cd /var/guix/profiles/per-user/$USER
  ln -s guix-profile-xyz-link /gnu/store/…-the-above-profile

I think ‘guix package’ should have options to simplify this.

Ludo’.

  reply	other threads:[~2016-03-06 22:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-06 14:41 guix archive export/import and software deployment Pjotr Prins
2016-03-06 22:55 ` Ludovic Courtès [this message]
2016-03-07  7:02   ` Chris Marusich
2016-03-07  7:15     ` Pjotr Prins
2016-03-07 16:38     ` 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

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

  git send-email \
    --in-reply-to=871t7ndxo8.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=pjotr.public12@thebird.nl \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.