From 47ba3f7d25fadb12b78d2728941e4e677fd7ad0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 21 Nov 2022 23:27:38 +0100 Subject: [PATCH] gnu: mate: Depend on gnome-keyring only on supported systems. This lets us build Mate on i686-linux. * gnu/packages/mate.scm (mate)[inputs]: Add GNOME-KEYRING conditionally. --- gnu/packages/mate.scm | 87 ++++++++++++++++++++++--------------------- 1 file changed, 45 insertions(+), 42 deletions(-) diff --git a/gnu/packages/mate.scm b/gnu/packages/mate.scm index d0e73e5a47..ce62366985 100644 --- a/gnu/packages/mate.scm +++ b/gnu/packages/mate.scm @@ -1490,48 +1490,51 @@ used to bring up authentication dialogs.") (native-inputs (list desktop-file-utils)) (inputs ;; TODO: Add more packages - (list at-spi2-core - atril - caja - dbus - dconf - engrampa - eom - font-abattis-cantarell - glib-networking - gnome-keyring - gvfs - hicolor-icon-theme - libmatekbd - libmateweather - libmatemixer - marco - mate-session-manager - mate-settings-daemon - mate-desktop - mate-terminal - mate-themes - mate-icon-theme - mate-power-manager - mate-menus - mate-panel - mate-control-center - mate-media - mate-applets - mate-user-guide - mate-calc - mate-backgrounds - mate-netbook - mate-utils - mate-polkit - mate-system-monitor - mate-utils - pluma - pinentry-gnome3 - pulseaudio - shared-mime-info - yelp - zenity)) + (append (if (or (%current-target-system) + (supported-package? gnome-keyring)) + (list gnome-keyring) + '()) + (list at-spi2-core + atril + caja + dbus + dconf + engrampa + eom + font-abattis-cantarell + glib-networking + gvfs + hicolor-icon-theme + libmatekbd + libmateweather + libmatemixer + marco + mate-session-manager + mate-settings-daemon + mate-desktop + mate-terminal + mate-themes + mate-icon-theme + mate-power-manager + mate-menus + mate-panel + mate-control-center + mate-media + mate-applets + mate-user-guide + mate-calc + mate-backgrounds + mate-netbook + mate-utils + mate-polkit + mate-system-monitor + mate-utils + pluma + pinentry-gnome3 + pulseaudio + shared-mime-info + yelp + zenity))) (propagated-inputs ;; Default font that applications such as IceCat require. (list font-dejavu))