From 7668f7c6f3772882aeab80e2fb8ac0d96938433c Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 26 Nov 2021 23:00:16 +0100 Subject: gnu: openbox: Keep librsvg dependency on x86_64 only. * gnu/packages/openbox.scm (openbox)[inputs]: Make LIBRSVG conditional. --- gnu/packages/openbox.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gnu/packages') 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 @@ (define-module (gnu packages openbox) #: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 @@ (define-public openbox (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) -- cgit v1.2.3