Gabriel Wicki <[email protected]> writes:

> Hey y'all!
>
> I have troubles getting Guix to pack a bunch of packages that are
> defined in a manifest which resides in a channel.
>
> In (iic-osic manifest) I define the manifest, iic-osic-packages
> describes the list of packages in that manifest.  Is it possible to pass
> the manifest as a module reference, or the list of packages?
>
> guix pack --format=docker -e '(@ (iic-osic manifest) iic-osic-packages)'
>
> In (iic-osic manifest) I have the variable iic-osic-manifest describe
> the manifest and:
> (define-public iic-osic-packages
>   (map manifest-entry-item (manifest-entries iic-osic-manifest)))
>
>
> This wouldn't work, though:
>> guix pack: error: expression "(@ (iic-osic manifest) iic-osic-packages)" 
>> does not evaluate to a package
>
> Any ideas/pointers/hacks?

Something like the following should work.

--8<---------------cut here---------------start------------->8---
echo '(@ (iic-osic manifest) iic-osic-packages)' | guix pack -fdocker 
-m/dev/stdin
--8<---------------cut here---------------end--------------->8---

Tomas

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

Reply via email to