gnu: librsvg-for-system: Choose librsvg based on package support.

* gnu/packages/gnome.scm (librsvg-for-system): Adjust the logic to
choose which librsvg based on which version is supported.
This commit is contained in:
Efraim Flashner 2023-05-05 15:50:11 +03:00
parent 9566721292
commit 0867ffbc62
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -3696,7 +3696,7 @@ (define* (librsvg-for-system #:optional
;; Since librsvg 2.50 depends on Rust, and Rust is only correctly supported
;; on x86_64, aarch64 and riscv64 so far, use the ancient C version on other
;; platforms (FIXME).
(if (string-prefix? "x86_64-" system)
(if (supported-package? librsvg)
librsvg
librsvg-2.40))