[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#39717] [PATCH 1/3] gnu: delft-icon-theme: Use the copy-build-system
From: |
Pierre Neidhardt |
Subject: |
[bug#39717] [PATCH 1/3] gnu: delft-icon-theme: Use the copy-build-system. |
Date: |
Thu, 27 Feb 2020 11:27:49 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Thanks for the patch!
Comments below:
> (arguments
> - `(#:modules ((guix build utils))
> - #:builder
> - (begin
> - (use-modules (guix build utils))
> - (copy-recursively (assoc-ref %build-inputs "source") "icons")
> - (substitute* "icons/Delft/index.theme"
> - (("gnome") "Adwaita"))
> - (delete-file "icons/README.md")
> - (delete-file "icons/LICENSE")
> - (delete-file "icons/logo.jpg")
> - (copy-recursively "icons" (string-append %output "/share/icons")))))
> + `(#:install-plan
> + '(,@(append-map (lambda (file)
> + `((,file "share/icons/")
> + (,(string-append file "-Dark") "share/icons/")
> + (,(string-append file "-Darker") "share/icons/")
> + (,(string-append file "-Darkest")
> "share/icons/")))
> + '("Delft" "Delft-Amber" "Delft-Aqua" "Delft-Blue"
> + "Delft-Gray" "Delft-Green" "Delft-Mint"
> "Delft-Purple"
> + "Delft-Red" "Delft-Teal")))))
Interesting use of install-plan, but wouldn't it be to copy everything
and simply exclude the previous delete files? E.g. (untested):
#:install-plan
`(("." "./" #:exclude ("README.md" "LICENSE" "logo.jpg")))
--
Pierre Neidhardt
https://ambrevar.xyz/
signature.asc
Description: PGP signature
- [bug#39717] [PATCH 1/3] gnu: delft-icon-theme: Use the copy-build-system., Leo Prikler, 2020/02/21
- [bug#39716] [PATCH 2/3] gnu: gnome-shell-extension-appindicator: Use the copy-build-system., Leo Prikler, 2020/02/21
- [bug#39715] [PATCH 3/3] gnu: gnome-shell-extension-noannoyance: Use the copy-build-system., Leo Prikler, 2020/02/21
- [bug#39717] [PATCH 1/3] gnu: delft-icon-theme: Use the copy-build-system.,
Pierre Neidhardt <=
- [bug#39717] [PATCH 1/3] gnu: delft-icon-theme: Use the copy-build-system., Leo Prikler, 2020/02/27
- [bug#39717] [PATCH 1/3] gnu: delft-icon-theme: Use the copy-build-system., Pierre Neidhardt, 2020/02/27
- [bug#39717] [PATCH 1/3] gnu: delft-icon-theme: Use the copy-build-system., Leo Prikler, 2020/02/27
- [bug#39717] [PATCH 1/3] gnu: delft-icon-theme: Use the copy-build-system., Pierre Neidhardt, 2020/02/27
- [bug#39717] [PATCH 1/3] gnu: delft-icon-theme: Use the copy-build-system., Leo Prikler, 2020/02/27
- [bug#39717] [PATCH 1/3] gnu: delft-icon-theme: Use the copy-build-system., Pierre Neidhardt, 2020/02/28
[bug#39717] [PATCH 1/3] gnu: delft-icon-theme: Use the copy-build-system., Leo Prikler, 2020/02/27