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: Ludovic Courtès
Subject: Re: How to install a package in guile
Date: Tue, 25 Jul 2017 23:14:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

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):

--8<---------------cut here---------------start------------->8---
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)
…
--8<---------------cut here---------------end--------------->8---

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.

HTH!

Ludo’.



reply via email to

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