mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-15 19:35:25 -05:00
utils: 'cache-directory' honors 'XDG_CACHE_HOME'.
* guix/utils.scm (cache-directory): Honor 'XDG_CACHE_HOME', not 'XDG_CONFIG_HOME'.
This commit is contained in:
parent
0a2f2848d5
commit
3583b27b2c
1 changed files with 1 additions and 1 deletions
|
@ -637,7 +637,7 @@ (define (with-atomic-file-output file proc)
|
||||||
|
|
||||||
(define (cache-directory)
|
(define (cache-directory)
|
||||||
"Return the cache directory for Guix, by default ~/.cache/guix."
|
"Return the cache directory for Guix, by default ~/.cache/guix."
|
||||||
(or (getenv "XDG_CONFIG_HOME")
|
(or (getenv "XDG_CACHE_HOME")
|
||||||
(and=> (or (getenv "HOME")
|
(and=> (or (getenv "HOME")
|
||||||
(passwd:dir (getpwuid (getuid))))
|
(passwd:dir (getpwuid (getuid))))
|
||||||
(cut string-append <> "/.cache/guix"))))
|
(cut string-append <> "/.cache/guix"))))
|
||||||
|
|
Loading…
Reference in a new issue