diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2024-09-06 12:02:08 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2024-09-06 12:02:08 +0200 |
commit | d4fbd1ab341de85c1e5c77e0f7adc5aae056be15 (patch) | |
tree | 150976015ac874f19293df82bb2e2561a3ae2f14 | |
parent | c1283e203995c8d84584e701b965efe086d1d666 (diff) | |
download | guix-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.scm | 11 |
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 |