utils: rosenthal-transformation-guix: Deduplicate substitute URLs.

* modules/rosenthal/utils/transformations.scm (rosenthal-transformation-guix):
Deduplicate substitute URLs.
This commit is contained in:
Hilton Chain 2025-06-16 00:20:09 +08:00
parent 895e8285b4
commit 4ef6a321c3
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292

View File

@ -2,6 +2,7 @@
;;; Copyright © 2025 Hilton Chain <hako@ultrarare.space> ;;; Copyright © 2025 Hilton Chain <hako@ultrarare.space>
(define-module (rosenthal utils transformations) (define-module (rosenthal utils transformations)
#:use-module (srfi srfi-1)
#:use-module (guix channels) #:use-module (guix channels)
#:use-module (guix gexp) #:use-module (guix gexp)
#:use-module (gnu system) #:use-module (gnu system)
@ -55,7 +56,8 @@
(cons %rosenthal-signing-key (cons %rosenthal-signing-key
(guix-configuration-authorized-keys config))) (guix-configuration-authorized-keys config)))
(substitute-urls (substitute-urls
`(,@(guix-configuration-substitute-urls config) (delete-duplicates
,@(if substitutes? `(,@(guix-configuration-substitute-urls config)
'("https://ci.boiledscript.com") ,@(if substitutes?
'())))))))))) '("https://ci.boiledscript.com")
'())))))))))))