From mboxrd@z Thu Jan 1 00:00:00 1970 From: Taegil Bae Subject: Re: '--load-path' option not working for 'guix system' command Date: Tue, 13 Nov 2018 16:55:19 +0900 Message-ID: References: <87bm6tbfrv.fsf@ambrevar.xyz> 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]:35386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMTYC-0002hw-R6 for help-guix@gnu.org; Tue, 13 Nov 2018 02:55:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMTYB-00073L-BH for help-guix@gnu.org; Tue, 13 Nov 2018 02:55:56 -0500 Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]:37061) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gMTYB-0006Zc-3A for help-guix@gnu.org; Tue, 13 Nov 2018 02:55:55 -0500 Received: by mail-qk1-x734.google.com with SMTP id 131so17885695qkd.4 for ; Mon, 12 Nov 2018 23:55:32 -0800 (PST) In-Reply-To: <87bm6tbfrv.fsf@ambrevar.xyz> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: mail@ambrevar.xyz Cc: help-guix@gnu.org Dear Pierre, Thank you for the reply. I didn't know that '~' does not expands to $HOME in the case. But actually I have used '-L ./my-guix'. This option is not working with 'guix system', but is working with 'guix build' and 'guix package'. root@antelope ~# guix build spice-vdagent --load-path=3D~/my-guix /gnu/store/5wk50f4zhhmg0s599z3d6v5zraxp72jp-spice-vdagent-0.17.0 root@antelope ~# guix build spice-vdagent --load-path=3D./my-guix ;;; note: source file ./my-guix/gnu/packages/spice.scm ;;; newer than compiled /gnu/store/6gjbbs9d68626j05h1ff3yya3nlizsc0-guix-e740a9022-modules/gnu/pack= ages/spice.go ;;; note: source file ./my-guix/gnu/packages/spice.scm ;;; newer than compiled /run/current-system/profile/lib/guile/2.2/site-ccache/gnu/packages/spice.go /gnu/store/d5l0idaszbb5dbxm072gmaknrhrh4bc9-spice-vdagent-fixed-0.17.0 root@antelope ~# guix system reconfigure /etc/config.scm -L ./my-guix/ -n The following derivations would be built: /gnu/store/14cww1f93h0zh6rylr18wsb8l16j7ipn-system.drv ................. root@antelope ~# guix system reconfigure /etc/config.scm -L ~/my-guix/ -n The following derivations would be built: /gnu/store/14cww1f93h0zh6rylr18wsb8l16j7ipn-system.drv .................. root@antelope ~# export GUIX_PACKAGE_PATH=3D~/my-guix root@antelope ~# guix system reconfigure /etc/config.scm -n ;;; note: source file /root/my-guix/gnu/packages/spice.scm ;;; newer than compiled /gnu/store/6gjbbs9d68626j05h1ff3yya3nlizsc0-guix-e740a9022-modules/gnu/pack= ages/spice.go ;;; note: source file /root/my-guix/gnu/packages/spice.scm ;;; newer than compiled /run/current-system/profile/lib/guile/2.2/site-ccache/gnu/packages/spice.go The following derivations would be built: /gnu/store/14cww1f93h0zh6rylr18wsb8l16j7ipn-system.drv .................... Regards, Taegil 2018=EB=85=84 11=EC=9B=94 13=EC=9D=BC (=ED=99=94) =EC=98=A4=ED=9B=84 4:25, = Pierre Neidhardt =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > > > 'guix system reconfigure /etc/config.scm --load-path=3D~/my-guix' > > This because the shell only expands '~' to $HOME if it's a starting chara= cter. > Here you should either use > > guix system reconfigure /etc/config.scm --load-path=3D$HOME/my-guix > > or > > guix system reconfigure /etc/config.scm -L ~/my-guix > > -- > Pierre Neidhardt > https://ambrevar.xyz/