[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/15: guix home: import: Delete duplicate modules when importing.
From: |
guix-commits |
Subject: |
05/15: guix home: import: Delete duplicate modules when importing. |
Date: |
Sat, 30 Oct 2021 18:52:33 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 256bd712648f404451f820eaedab3985df819556
Author: Xinglu Chen <public@yoctocell.xyz>
AuthorDate: Sat Oct 30 12:42:37 2021 +0200
guix home: import: Delete duplicate modules when importing.
Two different services might require the same module(s), so delete
duplicates
when generating the ‘use-modules’ form.
* import.scm (manifest->code): Delete duplicate modules.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
guix/scripts/home/import.scm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/guix/scripts/home/import.scm b/guix/scripts/home/import.scm
index 0e7c454..f0ae233 100644
--- a/guix/scripts/home/import.scm
+++ b/guix/scripts/home/import.scm
@@ -145,7 +145,8 @@ available."
(use-modules (gnu home)
(gnu packages)
(gnu services)
- ,@(concatenate (map cdr configurations+modules)))
+ ,@((compose delete-duplicates concatenate)
+ (map cdr configurations+modules)))
,(home-environment-template
#:specs specs
#:services (map first configurations+modules))))
@@ -190,7 +191,8 @@ available."
(gnu home)
(gnu packages)
(gnu services)
- ,@(concatenate (map cdr configurations+modules)))
+ ,@((compose delete-duplicates concatenate)
+ (map cdr configurations+modules)))
,@transformations
- branch master updated (cf0abb6 -> c4ac8cf), guix-commits, 2021/10/30
- 10/15: home: import: Clarify "destination directory"., guix-commits, 2021/10/30
- 04/15: guix home: import: Don’t use 'slurp-file-gexp'., guix-commits, 2021/10/30
- 13/15: doc: Mention "guix home import" upfront., guix-commits, 2021/10/30
- 12/15: home: import: Avoid duplication of 'manifest->code'., guix-commits, 2021/10/30
- 14/15: doc: Avoid misuse of @ref., guix-commits, 2021/10/30
- 08/15: guix home: import: Call ‘local-file’ with ‘name’, guix-commits, 2021/10/30
- 05/15: guix home: import: Delete duplicate modules when importing.,
guix-commits <=
- 01/15: guix home: import: Make the user to specify a destination directory., guix-commits, 2021/10/30
- 03/15: guix home: import: Fix module name for Bash service., guix-commits, 2021/10/30
- 09/15: home: import: Compare procedures with 'eq?'., guix-commits, 2021/10/30
- 06/15: doc: Document the ‘guix home import’ subcommand., guix-commits, 2021/10/30
- 07/15: Add tests for ‘guix home import’., guix-commits, 2021/10/30
- 11/15: home: import: Factorize triplicated 'version-spec' procedure., guix-commits, 2021/10/30
- 02/15: guix home: import: Allow multiple modules to be imported for each service., guix-commits, 2021/10/30
- 15/15: doc: Mention 'guix home reconfigure' upfront., guix-commits, 2021/10/30