gnu: librsvg: Add 'librsvg-for-system' procedure.

* gnu/packages/gnome.scm (librsvg-for-system): New procedure.
This commit is contained in:
Ludovic Courtès 2021-12-02 13:15:31 +01:00
parent 8477a6d743
commit d371abbd0f
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -3679,6 +3679,17 @@ (define-public librsvg-2.40
(synopsis "Render SVG files using Cairo (ancient C version)")
(properties '((hidden? . #t)))))
(define* (librsvg-for-system #:optional
(system (or (%current-target-system)
(%current-system))))
;; Since librsvg 2.50 depends on Rust, and Rust is only correctly supported
;; on x86_64 so far, use the ancient C version on other platforms (FIXME).
(if (string-prefix? "x86_64-" system)
librsvg
librsvg-2.40))
(export librsvg-for-system)
(define-public libidl
(package
(name "libidl")