summary refs log tree commit diff
path: root/gnu/packages/gnome.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-10-07 15:51:29 +0200
committerLudovic Courtès <ludo@gnu.org>2022-10-07 16:01:39 +0200
commit06deab3321d387fff3f07efe9c53c7db3ab2aa85 (patch)
treec7c528774692f667d955b11518b4c63c37957755 /gnu/packages/gnome.scm
parenta52f39ad0c0ffe78e4d2eef5fefdb4204799fdcb (diff)
downloadguix-06deab3321d387fff3f07efe9c53c7db3ab2aa85.tar.gz
gnu: libnma: Depend on GTK 4.x only on supported platforms.
Partly fixes <https://issues.guix.gnu.org/58352>.

* gnu/packages/gnome.scm (libnma)[arguments]: Set "-Dlibnma_gtk4=false"
when (supported-package? gtk) returns #f.
[inputs]: Adjust accordingly.
Diffstat (limited to 'gnu/packages/gnome.scm')
-rw-r--r--gnu/packages/gnome.scm8
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 8043eec30d..12cb4550b3 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -1763,7 +1763,11 @@ client devices can handle.")
                 "0h095a26w3sgbspsf7wzz8ddg62j3jb9ckrrv41k7cdp0k2dkhsg"))))
     (build-system meson-build-system)
     (arguments
-     `(#:configure-flags (list "-Dlibnma_gtk4=true")
+     ;; GTK 4.x depends on Rust (indirectly) so pull it only on platforms
+     ;; where it is supported.
+     `(#:configure-flags ,(if (supported-package? gtk)
+                              `(list "-Dlibnma_gtk4=true")
+                              `(list "-Dlibnma_gtk4=false"))
        #:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'patch-docbook-xml
@@ -1782,7 +1786,7 @@ client devices can handle.")
            vala))
     (inputs
      (list gcr
-           gtk
+           (if (supported-package? gtk) gtk gtk+)
            iso-codes
            mobile-broadband-provider-info
            network-manager))