guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to install a package in guile


From: Feng Shu
Subject: Re: How to install a package in guile
Date: Wed, 26 Jul 2017 20:44:24 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

address@hidden (Ludovic Courtès) writes:

> Hi,
>
> "Feng Shu" <address@hidden> 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 address@hidden
> 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’.
>

-- 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]