mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
build-system/gnu: Fix default name for the "doc" output directory.
* guix/build/gnu-build-system.scm (configure)[package-name]: Drop the prefix corresponding to the hash part of OUT.
This commit is contained in:
parent
5924080dcc
commit
593987671a
1 changed files with 4 additions and 3 deletions
|
@ -109,9 +109,10 @@ (define (package-name)
|
||||||
(base (basename out))
|
(base (basename out))
|
||||||
(dash (string-rindex base #\-)))
|
(dash (string-rindex base #\-)))
|
||||||
;; XXX: We'd rather use `package-name->name+version' or similar.
|
;; XXX: We'd rather use `package-name->name+version' or similar.
|
||||||
(if dash
|
(string-drop (if dash
|
||||||
(substring base 0 dash)
|
(substring base 0 dash)
|
||||||
base)))
|
base)
|
||||||
|
(+ 1 (string-index base #\-)))))
|
||||||
|
|
||||||
(let* ((prefix (assoc-ref outputs "out"))
|
(let* ((prefix (assoc-ref outputs "out"))
|
||||||
(bindir (assoc-ref outputs "bin"))
|
(bindir (assoc-ref outputs "bin"))
|
||||||
|
|
Loading…
Reference in a new issue