lilyp pushed a commit to branch master
in repository guix.
commit 11583a0a4d39a265ac2126c4dcd57ad63c1b35c8
Author: Timo Wilken <[email protected]>
AuthorDate: Wed Apr 2 13:16:22 2025 +0200
gnu: papirus-icon-theme: Avoid creating executable icons.
* gnu/packages/gnome-xyz.scm (papirus-icon-theme)[#:phases]:
Add ‘remove-executable-bit’.
Change-Id: Ic4d4f41b348d728913a90b0ef9cdf50f9901070a
Signed-off-by: Liliana Marie Prikler <[email protected]>
---
gnu/packages/gnome-xyz.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm
index 927cf83c0b..ebd9bcf45c 100644
--- a/gnu/packages/gnome-xyz.scm
+++ b/gnu/packages/gnome-xyz.scm
@@ -238,7 +238,13 @@ simple and consistent.")
(when (eq? 'regular (stat:type (stat target)))
(delete-file file)
(link target file))))
- (find-files "." symlink?))))))))
+ (find-files "." symlink?)))))
+ (add-before 'install 'remove-executable-bit
+ (lambda _
+ (let ((file? (lambda (_ stat)
+ (eq? 'regular (stat:type stat)))))
+ (for-each (lambda (file) (chmod file #o644))
+ (find-files "." file?))))))))
(native-inputs
(list `(,gtk+ "bin")))
(home-page "https://git.io/papirus-icon-theme")