all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Taegil Bae <esrevinu@gmail.com>
To: mail@ambrevar.xyz
Cc: help-guix@gnu.org
Subject: Re: '--load-path' option not working for 'guix system' command
Date: Tue, 13 Nov 2018 16:55:19 +0900	[thread overview]
Message-ID: <CA+k_ch+C6W19XkU9DcsQYG7j_SbpGb+DJF=7F40NB0Bi2xSPSQ@mail.gmail.com> (raw)
In-Reply-To: <87bm6tbfrv.fsf@ambrevar.xyz>

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=~/my-guix
/gnu/store/5wk50f4zhhmg0s599z3d6v5zraxp72jp-spice-vdagent-0.17.0
root@antelope ~# guix build spice-vdagent --load-path=./my-guix
;;; note: source file ./my-guix/gnu/packages/spice.scm
;;;       newer than compiled
/gnu/store/6gjbbs9d68626j05h1ff3yya3nlizsc0-guix-e740a9022-modules/gnu/packages/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=~/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/packages/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년 11월 13일 (화) 오후 4:25, Pierre Neidhardt <mail@ambrevar.xyz>님이 작성:
>
>
> > 'guix system reconfigure /etc/config.scm --load-path=~/my-guix'
>
> This because the shell only expands '~' to $HOME if it's a starting character.
> Here you should either use
>
>     guix system reconfigure /etc/config.scm --load-path=$HOME/my-guix
>
> or
>
>     guix system reconfigure /etc/config.scm -L ~/my-guix
>
> --
> Pierre Neidhardt
> https://ambrevar.xyz/

  reply	other threads:[~2018-11-13  7:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-13  3:49 '--load-path' option not working for 'guix system' command Taegil Bae
2018-11-13  7:25 ` Pierre Neidhardt
2018-11-13  7:55   ` Taegil Bae [this message]
2018-11-14  9:20     ` Oleg Pykhalov
2018-11-14 16:08       ` Taegil Bae
2018-11-18 11:08         ` Oleg Pykhalov
2018-11-18 20:12           ` Taegil Bae

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+k_ch+C6W19XkU9DcsQYG7j_SbpGb+DJF=7F40NB0Bi2xSPSQ@mail.gmail.com' \
    --to=esrevinu@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=mail@ambrevar.xyz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.