warpd: fix wayland build

This commit is contained in:
novenary 2022-10-20 11:09:48 +03:00
parent c7aa999f4e
commit 2a39991e32

View File

@ -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 \