util: nix-expressions->profile-build-wrapper: Deduplicate expressions list.

This commit is contained in:
Hilton Chain committed 2026-07-04 12:30:47 +08:00
1 parent c2722ed176
commit 30af71b024
1 file changed
+3 -2
+3 -2
View File
@@ -165,7 +165,8 @@ specifies the Nix binary to use."
(define profile.nix
(computed-file "profile.nix"
#~(begin
(use-modules (ice-9 format))
(use-modules (ice-9 format)
(srfi srfi-1))
(call-with-output-file #$output
(lambda (port)
(format port "\
@@ -192,7 +193,7 @@ in
}
"
#$nixpkgs-commit
(list #$@expressions)
(delete-duplicates (list #$@expressions) string=?)
'#$extra-outputs-to-install
'#$paths-to-exclude))))
#:options '(#:substitutable? #f)))