[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: sysadmin/web: Use new GWL with GUIX_EXTENSIONS_PATH.
From: |
Ricardo Wurmus |
Subject: |
01/02: sysadmin/web: Use new GWL with GUIX_EXTENSIONS_PATH. |
Date: |
Wed, 6 Jan 2021 17:19:50 -0500 (EST) |
rekado pushed a commit to branch master
in repository maintenance.
commit c4443f49fc77cedf34d49509776f9f9533d54abc
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Jan 6 22:58:57 2021 +0100
sysadmin/web: Use new GWL with GUIX_EXTENSIONS_PATH.
* hydra/modules/sysadmin/web.scm (gwl-web-shepherd-service): Remove
inner wrapping with GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH; set
GUIX_EXTENSIONS_PATH instead; run "guix workflow web".
(gwl-web-service-type): Update description.
---
hydra/modules/sysadmin/web.scm | 30 ++++++++----------------------
1 file changed, 8 insertions(+), 22 deletions(-)
diff --git a/hydra/modules/sysadmin/web.scm b/hydra/modules/sysadmin/web.scm
index d3203fe..5bb183f 100644
--- a/hydra/modules/sysadmin/web.scm
+++ b/hydra/modules/sysadmin/web.scm
@@ -1,7 +1,7 @@
;;; GNU Guix system administration tools.
;;;
;;; Copyright © 2019, 2020 Ludovic Courtès <ludo@gnu.org>
-;;; Copyright © 2020 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2020, 2021 Ricardo Wurmus <rekado@elephly.net>
;;;
;;; This program is free software: you can redistribute it and/or modify
;;; it under the terms of the GNU General Public License as published by
@@ -191,28 +191,14 @@ taken from a Git repository.")))
;;;
(define (gwl-web-shepherd-service gwl)
- (define gwl+deps
- (match (package-transitive-propagated-inputs gwl)
- (((labels packages) ...)
- (cons gwl packages))))
-
(define wrapped-guix
(program-file "guix-workflow"
#~(begin
- (setenv "GUILE_LOAD_PATH"
- (string-join '#$gwl+deps
- (string-append
- "/share/guile/site/"
- (effective-version) ":")
- 'suffix))
- (setenv "GUILE_LOAD_COMPILED_PATH"
- (string-join '#$gwl+deps
- (string-append
- "/lib/guile/"
- (effective-version)
- "/site-ccache:")
- 'suffix))
- (apply execl #$(file-append guix "/bin/guix")
+ (setenv "GUIX_EXTENSIONS_PATH"
+ (string-append '#$gwl
+ (string-append
"/share/guix/extensions")))
+ (apply execl
+ #$(file-append guix "/bin/guix")
(command-line)))))
(with-imported-modules (source-module-closure
@@ -225,7 +211,7 @@ taken from a Git repository.")))
(modules '((gnu build shepherd)
(gnu system file-systems)))
(start #~(make-forkexec-constructor/container
- (list #$wrapped-guix "workflow" "--web-interface")
+ (list #$wrapped-guix "workflow" "web")
#:user "gwl-web"
#:group "gwl-web"
#:log-file "/var/log/gwl.log"))
@@ -251,6 +237,6 @@ taken from a Git repository.")))
(const %gwl-web-accounts))))
(default-value gwl)
(description
- "Run @command{guix worflow --web}, which serves the Guix Workflow
+ "Run @command{guix worflow web}, which serves the Guix Workflow
Language (GWL) web site.")))