|
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.scmNow 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 anexpression I could use? Something along the wayguix 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
[Prev in Thread] | Current Thread | [Next in Thread] |