guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: xournalpp: Show icons.


From: guix-commits
Subject: branch master updated: gnu: xournalpp: Show icons.
Date: Fri, 06 Sep 2024 06:05:45 -0400

This is an automated email from the git hooks/post-receive script.

ngz pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new d4fbd1ab34 gnu: xournalpp: Show icons.
d4fbd1ab34 is described below

commit d4fbd1ab341de85c1e5c77e0f7adc5aae056be15
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Fri Sep 6 12:02:08 2024 +0200

    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
---
 gnu/packages/pdf.scm | 11 +++++++++--
 1 file 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]