mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
guix-package: Use directory names from (guix config).
* guix-package.in (%profile-directory): Use %STATE-DIRECTORY instead of a hard-coded directory.
This commit is contained in:
parent
d7e2841b9d
commit
a020d2a996
1 changed files with 2 additions and 2 deletions
|
@ -35,6 +35,7 @@ exec ${GUILE-@GUILE@} -L "@guilemoduledir@" -l "$0" \
|
|||
#:use-module (guix derivations)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (guix config)
|
||||
#:use-module (ice-9 ftw)
|
||||
#:use-module (ice-9 format)
|
||||
#:use-module (ice-9 match)
|
||||
|
@ -61,8 +62,7 @@ exec ${GUILE-@GUILE@} -L "@guilemoduledir@" -l "$0" \
|
|||
(cut string-append <> "/.guix-profile")))
|
||||
|
||||
(define %profile-directory
|
||||
(string-append "/nix/var/nix/profiles/"
|
||||
"guix/"
|
||||
(string-append %state-directory "/profiles/"
|
||||
(or (and=> (getenv "USER")
|
||||
(cut string-append "per-user/" <>))
|
||||
"default")))
|
||||
|
|
Loading…
Reference in a new issue