diff options
author | Ludovic Courtès <ludo@gnu.org> | 2021-11-26 23:00:16 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-11-26 23:00:16 +0100 |
commit | 7668f7c6f3772882aeab80e2fb8ac0d96938433c (patch) | |
tree | 9d8915ab3f4bcf9e76110bc3c6e343cdf2ae5f42 | |
parent | c335c06115e90ee7c8892ed5978b3d04d8c6d028 (diff) | |
download | guix-7668f7c6f3772882aeab80e2fb8ac0d96938433c.tar.gz |
gnu: openbox: Keep librsvg dependency on x86_64 only.
* gnu/packages/openbox.scm (openbox)[inputs]: Make LIBRSVG conditional.
-rw-r--r-- | gnu/packages/openbox.scm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/openbox.scm b/gnu/packages/openbox.scm index 00c93c3864..d89b8c1024 100644 --- a/gnu/packages/openbox.scm +++ b/gnu/packages/openbox.scm @@ -22,6 +22,7 @@ #:use-module ((guix licenses) #:select (gpl2+)) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (gnu packages freedesktop) #:use-module (gnu packages gettext) @@ -51,7 +52,14 @@ (propagated-inputs `(("python2-pyxdg" ,python2-pyxdg))) (inputs `(("imlib2" ,imlib2) ("libxml2" ,libxml2) - ("librsvg" ,librsvg) + + ;; Librsvg, an optional dependency, depends on Rust, which is + ;; well supported only on x86_64. Thus, remove it on other + ;; architectures. + ,@(if (target-x86-64?) + `(("librsvg" ,librsvg)) + '()) + ("libsm" ,libsm) ("libxcursor" ,libxcursor) ("libxinerama" ,libxinerama) |