|
From: | Zachary Kanfer |
Subject: | Re: How do I make a manifest file that installs a specific version of a dependency? |
Date: | Sun, 12 Mar 2017 19:50:07 -0400 |
Hello,
Zachary Kanfer <address@hidden> skribis:
> Running `guix package -m` on a file with this line `(list icedtea-2.6
> "jdk")` gives an error "In procedure module-lookup: Unbound variable:
> icedtea-2.6".
>
> I get the same error for the following lines:
>
> `(list icedtea-2.6.6 "jdk")`
> `(list address@hidden "jdk")`
>
> `guix package -s icedtea` reports that there is a version 2.6.6. How do I
> specify this in a manifest file? Thanks.
You should use ‘specification->package’ as discussed at
<https://www.gnu.org/software/guix/manual/html_node/Using- >.the-Configuration-System.html# index-specification_002d_ 003epackage
The ‘specification->package’ procedure takes a spec like those you’d
write on the ‘guix package -i’ command line, and returns the
corresponding package. ‘specification->package+output’ works similarly
but also returns the specified output (the part that comes after the
colon).
So your manifest would look something like:
(use-modules (gnu))
(packages->manifest
(map (compose list specification->package+output)
'("address@hidden:jdk" "emacs" "vim" …)))
HTH!
Ludo’.
[Prev in Thread] | Current Thread | [Next in Thread] |