From: Ian Eure <ian@retrospec.tv>
To: Reza Housseini <reza.housseini@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: How to pack development inputs from a package
Date: Fri, 20 Sep 2024 20:21:03 -0700 [thread overview]
Message-ID: <87zfo14rjf.fsf@meson> (raw)
In-Reply-To: <87zfo2o2st.fsf@housseini.me>
Hi Reza,
Reza Housseini <reza.housseini@gmail.com> writes:
> Hi Guixers
>
> From guix shell I can call
>
> guix shell -D -f guix.scm
>
> Now I want to pack those into a container with guix pack, but
> there is
> no equivalent command there, how would I achieve this, is there
> an
> expression I could use?
>
> Something along the way
>
> guix pack -f docker -e '(package->development-manifest
> (from-file "guix.scm"))'
>
I believe you just need to bring the package’s inputs and
native-inputs along. This probably isn’t quite right, but should
be close:
guix pack -f docker -e '(let ((pkg (from-file "guix.scm")))
(append (package-inputs pkg) (package-native-inputs pkg)))'
— Ian
next prev parent reply other threads:[~2024-09-21 3:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-20 13:46 How to pack development inputs from a package Reza Housseini
2024-09-21 3:21 ` Ian Eure [this message]
2024-09-23 14:08 ` Greg Hogan
2024-09-23 18:56 ` Reza Housseini
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=87zfo14rjf.fsf@meson \
--to=ian@retrospec.tv \
--cc=help-guix@gnu.org \
--cc=reza.housseini@gmail.com \
/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.