Hi, I'm trying to use cuirass to build all the packages of my current manifest on top of guix master periodically.
Some of my packages are custom, so I need cuirass to be aware of GUIX_PACKAGE_PATH env variable. The only way I found is to patch cuirass service (cf. following patch). Is this a good idea ? Is someone doing this kind of stuff here ? Thank you, Mathieu
>From 9474cce0a6b9c303efa99124a98b99684995e0f8 Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe <m.othac...@gmail.com> Date: Sun, 22 Jan 2017 16:27:39 +0100 Subject: [PATCH] wip: cuirass env variables --- gnu/services/cuirass.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gnu/services/cuirass.scm b/gnu/services/cuirass.scm index 1194133f6..8ca36f4c8 100644 --- a/gnu/services/cuirass.scm +++ b/gnu/services/cuirass.scm @@ -64,7 +64,9 @@ (use-substitutes? cuirass-configuration-use-substitutes? ;boolean (default #f)) (one-shot? cuirass-configuration-one-shot? ;boolean - (default #f))) + (default #f)) + (env cuirass-configuration-env + (default '()))) (define (cuirass-shepherd-service config) "Return a <shepherd-service> for the Cuirass service with CONFIG." @@ -80,7 +82,8 @@ (port (cuirass-configuration-port config)) (specs (cuirass-configuration-specifications config)) (use-substitutes? (cuirass-configuration-use-substitutes? config)) - (one-shot? (cuirass-configuration-one-shot? config))) + (one-shot? (cuirass-configuration-one-shot? config)) + (env (cuirass-configuration-env config))) (list (shepherd-service (documentation "Run Cuirass.") (provision '(cuirass)) @@ -97,6 +100,7 @@ #$@(if one-shot? '("--one-shot") '())) #:user #$user #:group #$group + #:environment-variables (list #$@env) #:log-file #$log-file)) (stop #~(make-kill-destructor))))))) -- 2.11.0