aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2024-09-06 12:02:08 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2024-09-06 12:02:08 +0200
commitd4fbd1ab341de85c1e5c77e0f7adc5aae056be15 (patch)
tree150976015ac874f19293df82bb2e2561a3ae2f14
parentc1283e203995c8d84584e701b965efe086d1d666 (diff)
downloadguix-d4fbd1ab341de85c1e5c77e0f7adc5aae056be15.tar
guix-d4fbd1ab341de85c1e5c77e0f7adc5aae056be15.tar.gz
gnu: xournalpp: Show icons.
Fixes: <https://issues.guix.gnu.org/51968> * gnu/packages/pdf.scm (xournalpp)[arguments]: Add phase to wrap GDK_PIXBUF_MODULE_FILE. [inputs]: Add ADWAITA-ICON-THEME. Change-Id: Ie0e20249462c66f974b2fe1e3156d5fc9cb01b62
-rw-r--r--gnu/packages/pdf.scm11
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index c59b450935..e743d51286 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -1072,11 +1072,18 @@ using a stylus.")
(lambda _
(invoke "cmake" "--build" "." "--target" "test-units")))
(add-after 'install 'glib-or-gtk-wrap
- (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
+ (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))
+ (add-after 'glib-or-gtk-wrap 'wrap-gdk-pixbuf
+ ;; This phase is necessary for xournalpp to load SVG icons.
+ (lambda _
+ (let ((pixbuf-module-file (getenv "GDK_PIXBUF_MODULE_FILE")))
+ (wrap-program (string-append #$output "/bin/xournalpp")
+ `("GDK_PIXBUF_MODULE_FILE" = (,pixbuf-module-file)))))))))
(native-inputs
(list cppunit gettext-minimal googletest help2man pkg-config))
(inputs
- (list alsa-lib
+ (list adwaita-icon-theme
+ alsa-lib
gtk+
(librsvg-for-system)
libsndfile