[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/07: services: Clarify extend/compose of BOOT-SERVICE-TYPE.
From: |
Ludovic Courtès |
Subject: |
01/07: services: Clarify extend/compose of BOOT-SERVICE-TYPE. |
Date: |
Mon, 02 Nov 2015 21:27:19 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit 3a391e68dafe81560d3e4936a1ec5ac3b06d43bb
Author: Ludovic Courtès <address@hidden>
Date: Mon Nov 2 17:01:32 2015 +0100
services: Clarify extend/compose of BOOT-SERVICE-TYPE.
* gnu/services.scm (compute-boot-script): Add first placeholder
parameter.
(boot-service-type): Change 'compose' to APPEND, and 'extend' to
COMPUTE-BOOT-SCRIPT.
---
gnu/services.scm | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/gnu/services.scm b/gnu/services.scm
index c8a2a26..ecf3532 100644
--- a/gnu/services.scm
+++ b/gnu/services.scm
@@ -182,7 +182,7 @@ This is a shorthand for (map (lambda (svc) ...)
%base-services)."
;;; Core services.
;;;
-(define (compute-boot-script mexps)
+(define (compute-boot-script _ mexps)
(mlet %store-monad ((gexps (sequence %store-monad mexps)))
(gexp->file "boot"
#~(begin
@@ -203,16 +203,14 @@ This is a shorthand for (map (lambda (svc) ...)
%base-services)."
;; Activate the system and spawn dmd.
address@hidden))))
-(define (second-argument a b) b)
-
(define boot-service-type
;; The service of this type is extended by being passed gexps as monadic
;; values. It aggregates them in a single script, as a monadic value, which
;; becomes its 'parameters'. It is the only service that extends nothing.
(service-type (name 'boot)
(extensions '())
- (compose compute-boot-script)
- (extend second-argument)))
+ (compose append)
+ (extend compute-boot-script)))
(define %boot-service
;; This is the ultimate service, the root of the service DAG.
@@ -296,6 +294,8 @@ ACTIVATION-SCRIPT-TYPE."
(mlet %store-monad ((script (activation-script gexps)))
(return #~(primitive-load #$script))))
+(define (second-argument a b) b)
+
(define activation-service-type
(service-type (name 'activate)
(extensions
- branch master updated (5adbe65 -> beca080), Ludovic Courtès, 2015/11/02
- 01/07: services: Clarify extend/compose of BOOT-SERVICE-TYPE.,
Ludovic Courtès <=
- 04/07: services: wicd: Add Wicd to the system profile., Ludovic Courtès, 2015/11/02
- 03/07: services: Add 'profile-service-type'., Ludovic Courtès, 2015/11/02
- 02/07: services: Add 'system-service-type'., Ludovic Courtès, 2015/11/02
- 06/07: services: avahi: Add Avahi to the system profile., Ludovic Courtès, 2015/11/02
- 05/07: services: slim: Add xterm to the system profile., Ludovic Courtès, 2015/11/02
- 07/07: services: udisks: Add UDisks to the system profile., Ludovic Courtès, 2015/11/02