From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: How to install a package in guile Date: Tue, 25 Jul 2017 23:14:24 +0200 Message-ID: <87y3rcb4nj.fsf@gnu.org> References: <87mv7s3agv.fsf@163.com> 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]:45422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1da79y-0001lN-WA for guix-devel@gnu.org; Tue, 25 Jul 2017 17:14:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1da79u-0003BH-Ql for guix-devel@gnu.org; Tue, 25 Jul 2017 17:14:30 -0400 In-Reply-To: <87mv7s3agv.fsf@163.com> (Feng Shu's message of "Tue, 25 Jul 2017 21:36:00 +0800") 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: Feng Shu Cc: guix-devel 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-substitut= es? #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 th= e 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 =3D #< entries: (#< name: "you-get" version: = "0.4.775" output: "out" item: # dependencies: () search-paths: () parent: #>>)> scheme@(guile-user)> ,run-in-store (profile-derivation $13) =E2=80=A6 --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=E2=80=99.