help-guix
[Top][All Lists]
Advanced

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

Re: How to pack development inputs from a package


From: Ian Eure
Subject: Re: How to pack development inputs from a package
Date: Fri, 20 Sep 2024 20:21:03 -0700
User-agent: mu4e 1.8.13; emacs 28.2

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



reply via email to

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