[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/06: home: services: channels: Remove duplicate channels.
From: |
guix-commits |
Subject: |
01/06: home: services: channels: Remove duplicate channels. |
Date: |
Wed, 4 Sep 2024 13:20:06 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 8da7f4a1103abc2abeef1ba149e6beb8b7966ab2
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Sun Apr 14 01:33:04 2024 +0200
home: services: channels: Remove duplicate channels.
* gnu/home/services/guix.scm
(extend-channel-list): Add function.
(home-channels-service-type)[extend]: Use extend-channel-list.
Change-Id: I587207b86216f075a54b6ed0b8fa998896bbed74
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/home/services/guix.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/home/services/guix.scm b/gnu/home/services/guix.scm
index 819b20b6c9..d31d3126bb 100644
--- a/gnu/home/services/guix.scm
+++ b/gnu/home/services/guix.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2022 Reily Siegel <mail@reilysiegel.com>
+;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -24,6 +25,12 @@
#:use-module (srfi srfi-1)
#:export (home-channels-service-type))
+(define (extend-channel-list initial new)
+ (delete-duplicates
+ (append initial new)
+ (lambda (channel1 channel2)
+ (eq? (channel-name channel1) (channel-name channel2)))))
+
(define (channels-xdg-files channels)
`(("guix/channels.scm"
,(plain-file
@@ -37,7 +44,7 @@
(name 'home-channels)
(default-value %default-channels)
(compose concatenate)
- (extend append)
+ (extend extend-channel-list)
(extensions
(list (service-extension home-xdg-configuration-files-service-type
channels-xdg-files)))
- branch master updated (95435c4ece -> ed95ddeb1e), guix-commits, 2024/09/04
- 04/06: ui: Clarify that the module is meant for UIs only., guix-commits, 2024/09/04
- 06/06: gnu: ffmpeg-{5,4,3}: Fix build on i686 with binutils 2.41., guix-commits, 2024/09/04
- 05/06: gnu: screen: Update to 5.0.0, guix-commits, 2024/09/04
- 01/06: home: services: channels: Remove duplicate channels.,
guix-commits <=
- 03/06: doc: Add index entries for ‘assume-file-name’ & co., guix-commits, 2024/09/04
- 02/06: gexp: Add ‘assume-source-relative-file-name’., guix-commits, 2024/09/04