all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Zachary Kanfer <zkanfer@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: help-guix@gnu.org
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	[thread overview]
Message-ID: <CAFXT+RMAu9oSXaZOiDf9zeyU72BLkF6Pc61yR+3rRt-GYN_o-w@mail.gmail.com> (raw)
In-Reply-To: <87shmi17wy.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1862 bytes --]

Thanks for responding. When I run this, I got this error:

Directory
'/gnu/store/jvj247prbwy1jn20svy4ls5yjscpmiss-xdg-mime-database/share/mime/packages'
does not exist!

My manifest file only installs racket and icedtea@2.6.6:jdk. If I rerun the
same command, I get "nothing to be done".

As a side note, is this the commonly recommended way to structure the
manifest file? The documentation for `guix package -m` instead says to use
`use-package-modules`, and doesn't mention anything about
`specification->package+output`.

On Sun, Mar 12, 2017 at 5:50 PM, Ludovic Courtès <ludo@gnu.org> wrote:

> Hello,
>
> Zachary Kanfer <zkanfer@gmail.com> 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 icedtea@2.6.6 "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)
>         '("icedtea@2.6.6:jdk" "emacs" "vim" …)))
>
> HTH!
>
> Ludo’.
>

[-- Attachment #2: Type: text/html, Size: 2683 bytes --]

  reply	other threads:[~2017-03-12 23:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-12  5:55 How do I make a manifest file that installs a specific version of a dependency? Zachary Kanfer
2017-03-12 21:50 ` Ludovic Courtès
2017-03-12 23:50   ` Zachary Kanfer [this message]
2017-03-13  8:24     ` Ludovic Courtès
2017-03-13  8:17   ` Chris Marusich
2017-03-13  9:20     ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFXT+RMAu9oSXaZOiDf9zeyU72BLkF6Pc61yR+3rRt-GYN_o-w@mail.gmail.com \
    --to=zkanfer@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.