guix-commits
[Top][All Lists]
Advanced

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

03/04: gnu: meld: Copy GTKSourceView styles.


From: guix-commits
Subject: 03/04: gnu: meld: Copy GTKSourceView styles.
Date: Tue, 14 Sep 2021 17:50:47 -0400 (EDT)

lilyp pushed a commit to branch master
in repository guix.

commit 28e9284942b11afac4001090b90ec37b27b78a8a
Author: Liliana Marie Prikler <liliana.prikler@gmail.com>
AuthorDate: Tue Sep 14 23:27:37 2021 +0200

    gnu: meld: Copy GTKSourceView styles.
    
    This fixes a somewhat cryptic error, that pops up when gtksourceview-3 has 
not
    been installed or propagated by any other package.
    
    * gnu/packages/patchutils.scm (meld)[#:phases]: Add ‘copy-styles’.
---
 gnu/packages/patchutils.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/patchutils.scm b/gnu/packages/patchutils.scm
index cefced8..8758fb0 100644
--- a/gnu/packages/patchutils.scm
+++ b/gnu/packages/patchutils.scm
@@ -298,6 +298,13 @@ GiB).")
              (invoke "py.test" "-v" "-k"
                      ;; TODO: Those tests fail, why?
                      "not test_classify_change_actions")))
+         (add-after 'install 'copy-styles
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let ((styles "/share/gtksourceview-3.0/styles"))
+               (copy-recursively
+                (string-append (assoc-ref inputs "gtksourceview") styles)
+                (string-append (assoc-ref outputs "out") styles))
+               #t)))
          (add-after 'wrap 'glib-or-gtk-wrap
            (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))
          (add-after 'wrap 'wrap-typelib



reply via email to

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