From: Mathieu OTHACEHE <m.othacehe@gmail.com>
To: guix-devel <guix-devel@gnu.org>
Subject: Build custom packages with cuirass.
Date: Sun, 22 Jan 2017 16:47:53 +0100 [thread overview]
Message-ID: <87shobkseu.fsf@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 374 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-wip-cuirass-env-variables.patch --]
[-- Type: text/x-patch, Size: 1794 bytes --]
From 9474cce0a6b9c303efa99124a98b99684995e0f8 Mon Sep 17 00:00:00 2001
From: Mathieu Othacehe <m.othacehe@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
next reply other threads:[~2017-01-22 15:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-22 15:47 Mathieu OTHACEHE [this message]
2017-01-22 23:42 ` Build custom packages with cuirass Mathieu Lirzin
2017-01-23 8:57 ` Mathieu OTHACEHE
2017-01-24 18:41 ` Mathieu Lirzin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87shobkseu.fsf@gmail.com \
--to=m.othacehe@gmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.