From 368fe3cd3b86071b07b899405a5af26fae2c9fde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 24 May 2024 15:02:55 +0200 Subject: [PATCH] xdg-utils: make procmail optional when cross-compiling --- pkgs/tools/X11/xdg-utils/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/X11/xdg-utils/default.nix b/pkgs/tools/X11/xdg-utils/default.nix index 10604d4acfa0..96abfb8a6242 100644 --- a/pkgs/tools/X11/xdg-utils/default.nix +++ b/pkgs/tools/X11/xdg-utils/default.nix @@ -167,7 +167,10 @@ let { scripts = [ "bin/xdg-screensaver" ]; interpreter = "${bash}/bin/bash"; - inputs = commonDeps ++ [ nettools perl procmail procps ]; + inputs = commonDeps ++ [ nettools perl procps ] + # procmail's funky build system is currently broken in cross-build. + # xdg-screensaver will gracefully degrade if it's not available. + ++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) procmail; # These are desktop-specific, so we don't want xdg-utils to be able to # call them when in a different setup. fake.external = commonFakes ++ [ @@ -176,7 +179,7 @@ let "xautolock" # Xautolock "xscreensaver-command" # Xscreensaver "xset" # generic-ish X - ]; + ] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "lockfile"; # procmail keep = { "$MV" = true; "$XPROP" = true;