gnu: guile-fibers: Install .go files to "…/site-ccache".

* gnu/packages/guile.scm (guile-fibers)[arguments]: New field.
This commit is contained in:
Ludovic Courtès 2018-09-05 15:33:25 +02:00
parent 3f5e6ccf9b
commit 5e3082df1c
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1817,6 +1817,20 @@ (define-public guile-fibers
(base32
"0vjkg72ghgdgphzbjz9ig8al8271rq8974viknb2r1rg4lz92ld0"))))
(build-system gnu-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(add-after 'install 'mode-guile-objects
(lambda* (#:key outputs #:allow-other-keys)
;; .go files are installed to "lib/guile/X.Y/cache".
;; This phase moves them to "…/site-ccache".
(let* ((out (assoc-ref outputs "out"))
(lib (string-append out "/lib/guile"))
(old (car (find-files lib "^ccache$"
#:directories? #t)))
(new (string-append (dirname old)
"/site-ccache")))
(rename-file old new)
#t))))))
(native-inputs
`(("texinfo" ,texinfo)
("pkg-config" ,pkg-config)))