* [bug#34324] [PATCH] gnu: artanis: Make some improvements.
@ 2019-02-04 23:50 Christopher Baines
2019-02-05 9:17 ` Ricardo Wurmus
0 siblings, 1 reply; 3+ messages in thread
From: Christopher Baines @ 2019-02-04 23:50 UTC (permalink / raw)
To: 34324
* gnu/packages/guile-xyz.scm (artanis): Remove a tab character by the
revision.
[arguments]: Patch the site-dir for the help command, to make it work. Wrap
the art command such that it finds guile-json and guile-redis.
---
gnu/packages/guile-xyz.scm | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 9640d17c3c..6c1e9c50ec 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -85,7 +85,7 @@
(define-public artanis
(let ((release "0.3.1")
- (revision 0))
+ (revision 0))
(package
(name "artanis")
(version (if (zero? revision)
@@ -152,6 +152,13 @@
#:test-target "test"
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch-site-dir
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "artanis/commands/help.scm"
+ (("\\(%site-dir\\)")
+ (string-append "\""
+ (assoc-ref outputs "out")
+ "/share/guile/site/2.2\"")))))
(add-before 'install 'substitute-root-dir
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
@@ -162,14 +169,16 @@
(mkdir-p (string-append out "/bin")) ;for the `art' executable
#t)))
(add-after 'install 'wrap-art
- (lambda* (#:key outputs #:allow-other-keys)
+ (lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin"))
(scm (string-append out "/share/guile/site/2.2"))
(go (string-append out "/lib/guile/2.2/site-ccache")))
(wrap-program (string-append bin "/art")
- `("GUILE_LOAD_PATH" ":" prefix (,scm))
- `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,go)))
+ `("GUILE_LOAD_PATH" ":" prefix
+ (,scm ,(getenv "GUILE_LOAD_PATH")))
+ `("GUILE_LOAD_COMPILED_PATH" ":" prefix
+ (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))
#t))))))
(synopsis "Web application framework written in Guile")
(description "GNU Artanis is a web application framework written in Guile
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#34324] [PATCH] gnu: artanis: Make some improvements.
2019-02-04 23:50 [bug#34324] [PATCH] gnu: artanis: Make some improvements Christopher Baines
@ 2019-02-05 9:17 ` Ricardo Wurmus
2019-02-05 9:25 ` bug#34324: " Christopher Baines
0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2019-02-05 9:17 UTC (permalink / raw)
To: Christopher Baines; +Cc: 34324
Christopher Baines <mail@cbaines.net> writes:
> * gnu/packages/guile-xyz.scm (artanis): Remove a tab character by the
> revision.
> [arguments]: Patch the site-dir for the help command, to make it work. Wrap
> the art command such that it finds guile-json and guile-redis.
LGTM, thanks!
--
Ricardo
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#34324: [PATCH] gnu: artanis: Make some improvements.
2019-02-05 9:17 ` Ricardo Wurmus
@ 2019-02-05 9:25 ` Christopher Baines
0 siblings, 0 replies; 3+ messages in thread
From: Christopher Baines @ 2019-02-05 9:25 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: 34324-done
[-- Attachment #1: Type: text/plain, Size: 443 bytes --]
Ricardo Wurmus <rekado@elephly.net> writes:
> Christopher Baines <mail@cbaines.net> writes:
>
>> * gnu/packages/guile-xyz.scm (artanis): Remove a tab character by the
>> revision.
>> [arguments]: Patch the site-dir for the help command, to make it work. Wrap
>> the art command such that it finds guile-json and guile-redis.
>
> LGTM, thanks!
Great, I've pushed this as
fd9a6d83c280593bd61805a78a9f45ced3e6a527. Thanks for taking a look :)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-02-05 9:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-04 23:50 [bug#34324] [PATCH] gnu: artanis: Make some improvements Christopher Baines
2019-02-05 9:17 ` Ricardo Wurmus
2019-02-05 9:25 ` bug#34324: " Christopher Baines
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).