[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: gnu: guile-fibers: Install .go files to "…/site-ccache".
From: |
Ludovic Courtès |
Subject: |
01/02: gnu: guile-fibers: Install .go files to "…/site-ccache". |
Date: |
Wed, 5 Sep 2018 09:36:00 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 5e3082df1c8eb07f7c7cd02f118cd9975eb32bb8
Author: Ludovic Courtès <address@hidden>
Date: Wed Sep 5 15:33:25 2018 +0200
gnu: guile-fibers: Install .go files to "…/site-ccache".
* gnu/packages/guile.scm (guile-fibers)[arguments]: New field.
---
gnu/packages/guile.scm | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index a585dd6..f594cd1 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -1817,6 +1817,20 @@ Note that 8sync is only available for Guile 2.2.")
(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)))