mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 14:16:55 -05:00
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.
This commit is contained in:
parent
a52f39ad0c
commit
06deab3321
1 changed files with 6 additions and 2 deletions
|
@ -1763,7 +1763,11 @@ (define-public libnma
|
||||||
"0h095a26w3sgbspsf7wzz8ddg62j3jb9ckrrv41k7cdp0k2dkhsg"))))
|
"0h095a26w3sgbspsf7wzz8ddg62j3jb9ckrrv41k7cdp0k2dkhsg"))))
|
||||||
(build-system meson-build-system)
|
(build-system meson-build-system)
|
||||||
(arguments
|
(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
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-docbook-xml
|
(add-after 'unpack 'patch-docbook-xml
|
||||||
|
@ -1782,7 +1786,7 @@ (define-public libnma
|
||||||
vala))
|
vala))
|
||||||
(inputs
|
(inputs
|
||||||
(list gcr
|
(list gcr
|
||||||
gtk
|
(if (supported-package? gtk) gtk gtk+)
|
||||||
iso-codes
|
iso-codes
|
||||||
mobile-broadband-provider-info
|
mobile-broadband-provider-info
|
||||||
network-manager))
|
network-manager))
|
||||||
|
|
Loading…
Reference in a new issue