mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 20:44:12 +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" ];
|
scripts = [ "bin/xdg-screensaver" ];
|
||||||
interpreter = "${bash}/bin/bash";
|
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
|
# These are desktop-specific, so we don't want xdg-utils to be able to
|
||||||
# call them when in a different setup.
|
# call them when in a different setup.
|
||||||
fake.external = commonFakes ++ [
|
fake.external = commonFakes ++ [
|
||||||
@ -176,7 +179,7 @@ let
|
|||||||
"xautolock" # Xautolock
|
"xautolock" # Xautolock
|
||||||
"xscreensaver-command" # Xscreensaver
|
"xscreensaver-command" # Xscreensaver
|
||||||
"xset" # generic-ish X
|
"xset" # generic-ish X
|
||||||
];
|
] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "lockfile"; # procmail
|
||||||
keep = {
|
keep = {
|
||||||
"$MV" = true;
|
"$MV" = true;
|
||||||
"$XPROP" = true;
|
"$XPROP" = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user