warpd: fix wayland build
This commit is contained in:
parent
c7aa999f4e
commit
2a39991e32
|
@ -26,7 +26,11 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ git ];
|
nativeBuildInputs = [ git ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = if waylandSupport then [
|
||||||
|
cairo
|
||||||
|
libxkbcommon
|
||||||
|
wayland
|
||||||
|
] else [
|
||||||
libXi
|
libXi
|
||||||
libXinerama
|
libXinerama
|
||||||
libXft
|
libXft
|
||||||
|
@ -34,13 +38,9 @@ stdenv.mkDerivation rec {
|
||||||
libXtst
|
libXtst
|
||||||
libX11
|
libX11
|
||||||
libXext
|
libXext
|
||||||
] ++ lib.optionals waylandSupport [
|
|
||||||
cairo
|
|
||||||
libxkbcommon
|
|
||||||
wayland
|
|
||||||
];
|
];
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=$(out)" ];
|
makeFlags = [ "PREFIX=$(out)" ] ++ lib.optionals waylandSupport [ "PLATFORM=wayland" ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace Makefile \
|
substituteInPlace Makefile \
|
||||||
|
|
Loading…
Reference in a new issue