[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/06: services: dmd: Strip the default list of modules.
From: |
Ludovic Courtès |
Subject: |
04/06: services: dmd: Strip the default list of modules. |
Date: |
Wed, 25 Nov 2015 11:00:20 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit 479b417b54ab5ef7ce0d46c409ab084d5eb3c9ad
Author: Ludovic Courtès <address@hidden>
Date: Wed Nov 25 10:59:58 2015 +0100
services: dmd: Strip the default list of modules.
* gnu/services/dmd.scm (%default-imported-modules): Remove (gnu build
file-systems).
(%default-modules): Likewise, and remove (ice-9 ftw).
* gnu/services/base.scm (file-system-service-type): Add 'modules' and
'imported-modules' fields.
---
gnu/services/base.scm | 9 ++++++++-
gnu/services/dmd.scm | 8 ++------
2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 6077fb6..c242c7d 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -223,7 +223,14 @@ FILE-SYSTEM."
(chdir "/")
(umount #$target)
- #f)))))))
+ #f))
+
+ ;; We need an additional module.
+ (modules `(((gnu build file-systems)
+ #:select (check-file-system canonicalize-device-spec))
+ ,@%default-modules))
+ (imported-modules `((gnu build file-systems)
+ ,@%default-imported-modules)))))))
(define* (file-system-service file-system)
"Return a service that mounts @var{file-system}, a @code{<file-system>}
diff --git a/gnu/services/dmd.scm b/gnu/services/dmd.scm
index 76f286a..6f70f3d 100644
--- a/gnu/services/dmd.scm
+++ b/gnu/services/dmd.scm
@@ -107,18 +107,14 @@ service that extends DMD-ROOT-SERVICE-TYPE and nothing
else."
(define %default-imported-modules
;; Default set of modules imported for a service's consumption.
'((guix build utils)
- (guix build syscalls)
- (gnu build file-systems)))
+ (guix build syscalls)))
(define %default-modules
;; Default set of modules visible in a service's file.
`((dmd service)
(oop goops)
- (ice-9 ftw)
(guix build utils)
- (guix build syscalls)
- ((gnu build file-systems)
- #:select (check-file-system canonicalize-device-spec))))
+ (guix build syscalls)))
(define-record-type* <dmd-service>
dmd-service make-dmd-service
- branch master updated (3957013 -> b9c7ed7), Ludovic Courtès, 2015/11/25
- 02/06: gexp: Build text derivations locally., Ludovic Courtès, 2015/11/25
- 01/06: gnu: dico: Sort entries in .a files deterministically., Ludovic Courtès, 2015/11/25
- 04/06: services: dmd: Strip the default list of modules.,
Ludovic Courtès <=
- 06/06: services: dmd: Spawn a REPL upon failure to load a service definition., Ludovic Courtès, 2015/11/25
- 05/06: doc: Remove mention of monadic services., Ludovic Courtès, 2015/11/25
- 03/06: services: dmd: Add 'modules' and 'imported-modules' fields., Ludovic Courtès, 2015/11/25