summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2021-01-21 12:32:42 +0200
committerEfraim Flashner <efraim@flashner.co.il>2021-01-21 14:24:31 +0200
commitdbd94d966ac971ceac1b51814dd75515a80132b0 (patch)
treef245dbe2077df502565a4a2a7369c85a0bc55357
parent3c0f7dcbad41f60eae9db4ade2b5c51bc88799af (diff)
gnu: guile2.0-shepherd: Fix build.
* gnu/packages/admin.scm (guile2.0-shepherd)[native-inputs]: Add help2man. [arguments]: Add custom phase to patch out import of (ice-9 threads).
-rw-r--r--gnu/packages/admin.scm15
1 files changed, 13 insertions, 2 deletions
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index da5fab8ef8..87b0f36cc1 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -309,10 +309,21 @@ interface and is based on GNU Guile.")
(inherit shepherd)
(name "guile2.0-shepherd")
(native-inputs
- `(("pkg-config" ,pkg-config)
+ `(("help2man" ,help2man)
+ ("pkg-config" ,pkg-config)
("guile" ,guile-2.0)))
(inputs
- `(("guile" ,guile-2.0)))))
+ `(("guile" ,guile-2.0)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-source
+ (lambda _
+ ;; (ice-9 threads) isn't available in guile-2.0
+ (substitute* "modules/shepherd.scm"
+ ((".*\\(ice-9 threads\\).*") ""))
+ #t)))
+ ,@(package-arguments shepherd)))))
(define-public cloud-utils
(package