mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
home: import: Fix handling of manifest entries with specific output.
specification->package fails on manifest entries with specific outputs, resulting in an invalid home configuration. This changes the import command to use specification->package+output instead. * guix/scripts/home/import.scm (manifest+configuration-files->code): Make sure manifest entries with specific output are also handled. * tests/home-import.scm: Specify output in home environment manifest entry. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
282197b521
commit
d7fb57bcd5
2 changed files with 11 additions and 7 deletions
|
@ -2,6 +2,7 @@
|
|||
;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
|
||||
;;; Copyright © 2021 Andrew Tropin <andrew@trop.in>
|
||||
;;; Copyright © 2021 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2022 Arjan Adriaanse <arjan@adriaan.se>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -164,7 +165,8 @@ user's files to CONFIGURATION-DIRECTORY; the generated sexp refers to them."
|
|||
,@(delete-duplicates (concatenate modules)))
|
||||
|
||||
(home-environment
|
||||
(packages (map specification->package ,packages))
|
||||
(packages (map (compose list specification->package+output)
|
||||
,packages))
|
||||
(services (list ,@services)))))))))
|
||||
|
||||
(define* (import-manifest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue