From: "Feng Shu" <tumashu@163.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel <guix-devel@gnu.org>, Feng Shu <tumashu@163.com>
Subject: Re: How to install a package in guile
Date: Wed, 26 Jul 2017 20:44:24 +0800 [thread overview]
Message-ID: <87mv7rs6zb.fsf@163.com> (raw)
In-Reply-To: <87y3rcb4nj.fsf@gnu.org> ("Ludovic \=\?iso-8859-1\?Q\?Court\=E8s\?\= \=\?iso-8859-1\?Q\?\=22's\?\= message of "Tue, 25 Jul 2017 23:14:24 +0200")
ludo@gnu.org (Ludovic Courtès) writes:
> Hi,
>
> "Feng Shu" <tumashu@163.com> skribis:
>
>> I use the following exp to build a new version you-get
>>
>> #+BEGIN_COMMENT
>> scheme@(guile-user)> ,run-in-store (build-package you-get #:use-substitutes? #t #:dry-run? #f)
>> #+END_COMMENT
>>
>> How to install this new vesion of you-get in guile?
>
> You’d first need to build a profile that contains you-get, using the API
> in (guix profiles):
>
> scheme@(guile-user)> ,use(guix)
> scheme@(guile-user)> ,use(gnu)
> scheme@(guile-user)> ,use(guix profiles)
> scheme@(guile-user)> (packages->manifest (list (specification->package "you-get")))
> $13 = #<<manifest> entries: (#<<manifest-entry> name: "you-get"
> version: "0.4.775" output: "out" item: #<package you-get@0.4.775
> gnu/packages/video.scm:1239 1529d80> dependencies: () search-paths: ()
> parent: #<promise #<procedure 7feced850c18 at guix/profiles.scm:276:48
> ()>>>)>
> scheme@(guile-user)> ,run-in-store (profile-derivation $13)
> …
(packages-manifest (list you-get)) seem to work too.
>
> The rest (setting up the symlink) is a little less convenient though.
> See (guix scripts package) or the equivalent Emacs-Guix code for how
> this works.
>
(build-and-use-profile store "~/.guix-profile" $2)
How can I get the "store"?
> HTH!
>
> Ludo’.
>
--
next prev parent reply other threads:[~2017-07-26 12:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-25 13:36 How to install a package in guile Feng Shu
2017-07-25 15:49 ` ng0
2017-07-25 21:14 ` Ludovic Courtès
2017-07-26 12:44 ` Feng Shu [this message]
2017-07-26 20:35 ` Alex Kost
2017-07-27 12:43 ` Feng Shu
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=87mv7rs6zb.fsf@163.com \
--to=tumashu@163.com \
--cc=guix-devel@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.