mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 12:34:15 +00:00
xdg-utils: make procmail optional when cross-compiling
This commit is contained in:
parent
3f316d2a50
commit
368fe3cd3b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user