summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guix.scm23
1 files changed, 19 insertions, 4 deletions
diff --git a/guix.scm b/guix.scm
index a1764d0..9eedc33 100644
--- a/guix.scm
+++ b/guix.scm
@@ -33,10 +33,25 @@
#:select? (git-predicate %source-dir)))
(build-system gnu-build-system)
(arguments
- `(#:make-flags (list (string-append "prefix=" %output))
- #:phases
- (modify-phases %standard-phases
- (delete 'configure))))
+ (list #:make-flags #~(list (string-append "prefix=" #$output))
+ #:modules `(((guix build guile-build-system)
+ #:select (target-guile-effective-version))
+ ,@%gnu-build-system-modules)
+ #:phases
+ (with-imported-modules '((guix build guile-build-system))
+ #~(modify-phases %standard-phases
+ (delete 'configure)
+ (add-after 'install 'wrap
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (effective-version (target-guile-effective-version)))
+ (wrap-program (string-append out "/bin/tissue")
+ `("GUILE_LOAD_PATH" prefix
+ (,(string-append out "/share/guile/site/" effective-version)
+ ,(getenv "GUILE_LOAD_PATH")))
+ `("GUILE_LOAD_COMPILED_PATH" prefix
+ (,(string-append out "/lib/guile/" effective-version "/site-ccache")
+ ,(getenv "GUILE_LOAD_COMPILED_PATH")))))))))))
(home-page "https://tissue.systemreboot.net")
(synopsis "Text based issue tracker")
(description "tissue is a text based issue tracker.")