From d4b1c6456fa4628aa408191eb6e8ee0d3001450d Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 28 Feb 2022 17:38:24 +0530 Subject: forge: Require laminar service for forge-laminar service. The forge-laminar service should require the laminar service, and transparently set it up even if the user has not explicitly specified it. * forge/laminar.scm: Import (gnu services ci). (forge-laminar-service-type): Extend laminar-service-type with a dummy value, thus requiring it. --- forge/laminar.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'forge') diff --git a/forge/laminar.scm b/forge/laminar.scm index 9ce12d0..5d95372 100644 --- a/forge/laminar.scm +++ b/forge/laminar.scm @@ -21,6 +21,7 @@ #:use-module (gnu) #:use-module (srfi srfi-1) #:use-module (gnu packages ci) + #:use-module (gnu services ci) #:use-module (guix records) #:export (forge-laminar-service-type forge-laminar-configuration @@ -118,7 +119,11 @@ (name 'forge-laminar) (description "Run forge-laminar.") (extensions (list (service-extension activation-service-type - forge-laminar-activation))) + forge-laminar-activation) + ;; Extend the laminar service with a dummy value, + ;; thus requiring it. + (service-extension laminar-service-type + (const #t)))) (compose concatenate) (extend (lambda (config extended-values) (forge-laminar-configuration -- cgit v1.2.3