From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Feng Shu" Subject: Re: How to install a package in guile Date: Wed, 26 Jul 2017 20:44:24 +0800 Message-ID: <87mv7rs6zb.fsf@163.com> References: <87mv7s3agv.fsf@163.com> <87y3rcb4nj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daLg0-0007ww-Mv for guix-devel@gnu.org; Wed, 26 Jul 2017 08:44:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1daLfx-0008Bm-VA for guix-devel@gnu.org; Wed, 26 Jul 2017 08:44:32 -0400 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") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?iso-8859-1?Q?Court=E8s?= Cc: guix-devel , Feng Shu ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hi, > > "Feng Shu" 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-substitu= tes? #t #:dry-run? #f) >> #+END_COMMENT >> >> How to install this new vesion of you-get in guile? > > You=E2=80=99d 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 "y= ou-get"))) > $13 =3D #< entries: (#< name: "you-get" > version: "0.4.775" output: "out" item: # gnu/packages/video.scm:1239 1529d80> dependencies: () search-paths: () > parent: # ()>>>)> > scheme@(guile-user)> ,run-in-store (profile-derivation $13) > =E2=80=A6 (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=E2=80=99. > --=20