mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +01:00
packages: Use %store-directory.
* guix/packages.scm (patch-and-repack): Call %store-directory instead of duplicating its code.
This commit is contained in:
parent
0272ee499d
commit
2fdcc6074e
1 changed files with 1 additions and 1 deletions
|
@ -466,7 +466,7 @@ (define (first-file directory)
|
|||
|
||||
;; SOURCE may be either a directory or a tarball.
|
||||
(and (if (file-is-directory? #+source)
|
||||
(let* ((store (or (getenv "NIX_STORE") "/gnu/store"))
|
||||
(let* ((store (%store-directory))
|
||||
(len (+ 1 (string-length store)))
|
||||
(base (string-drop #+source len))
|
||||
(dash (string-index base #\-))
|
||||
|
|
Loading…
Reference in a new issue