[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to pack development inputs from a package
From: |
Reza Housseini |
Subject: |
Re: How to pack development inputs from a package |
Date: |
Mon, 23 Sep 2024 20:56:27 +0200 |
Greg Hogan <code@greghogan.com> writes:
Hi Ian, hi Greg
Thanks for your inputs, I tried to come up with an expression, but
failed to find one working, I got stuck with
guix pack -f docker -e '(@ (guix packages) (package-development-inputs (load
"guix.scm")))'
but it does not seem to work.
I managed to make it work with an additional manifest.scm file with the
following content
(package->development-manifest (load "guix.scm"))
although I would have prefered the command line approach as I need to
call guix pack inside a script.
Thanks and all the best,
Reza
> On Fri, Sep 20, 2024 at 9:47 AM Reza Housseini <reza.housseini@gmail.com>
> wrote:
>>
>> 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"))'
>
> You have a manifest for the package, why not create a second manifest
> for the container which includes guix.scm and returns the result of
> package->development-manifest (or returns that concatenated with
> additional useful development packages)?