profiles: gtk-icon-themes: Fix build error for when there are no icon themes.

* guix/profiles.scm (gtk-icon-themes): Always create the output directory.

Change-Id: I2aa5ab0023c9c584182c67f79102fb66b46a3a7d
Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
This commit is contained in:
Rutherther 2025-04-27 23:05:25 +02:00 committed by 宋文武
parent 358f852b26
commit d47379b8dc
No known key found for this signature in database
GPG key ID: D415BF253B515976

View file

@ -1379,6 +1379,9 @@ icon theme. It's used by GTK applications to speedup icons loading."
(srfi srfi-26) (srfi srfi-26)
(ice-9 ftw)) (ice-9 ftw))
;; Ensure output is still produced when no cache files are created.
(mkdir-p #$output)
(let* ((destdir (string-append #$output "/share/icons")) (let* ((destdir (string-append #$output "/share/icons"))
(icondirs (filter file-exists? (icondirs (filter file-exists?
(map (cut string-append <> "/share/icons") (map (cut string-append <> "/share/icons")