From 2a39991e326eb87ff8100733d59371d71a47f266 Mon Sep 17 00:00:00 2001 From: novenary Date: Thu, 20 Oct 2022 11:09:48 +0300 Subject: [PATCH] warpd: fix wayland build --- pkgs/applications/misc/warpd/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/misc/warpd/default.nix b/pkgs/applications/misc/warpd/default.nix index 7e81a45c5528..683b725ac5e1 100644 --- a/pkgs/applications/misc/warpd/default.nix +++ b/pkgs/applications/misc/warpd/default.nix @@ -26,7 +26,11 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ git ]; - buildInputs = [ + buildInputs = if waylandSupport then [ + cairo + libxkbcommon + wayland + ] else [ libXi libXinerama libXft @@ -34,13 +38,9 @@ stdenv.mkDerivation rec { libXtst libX11 libXext - ] ++ lib.optionals waylandSupport [ - cairo - libxkbcommon - wayland ]; - makeFlags = [ "PREFIX=$(out)" ]; + makeFlags = [ "PREFIX=$(out)" ] ++ lib.optionals waylandSupport [ "PLATFORM=wayland" ]; postPatch = '' substituteInPlace Makefile \