2022-06-16 17:23:12 +00:00
|
|
|
{ qtModule
|
|
|
|
, qtbase
|
|
|
|
, qtdeclarative
|
|
|
|
, wayland
|
2024-09-19 14:19:46 +00:00
|
|
|
, wayland-scanner
|
2022-06-16 17:23:12 +00:00
|
|
|
, pkg-config
|
|
|
|
, libdrm
|
|
|
|
}:
|
|
|
|
|
|
|
|
qtModule {
|
|
|
|
pname = "qtwayland";
|
2024-09-19 14:19:46 +00:00
|
|
|
# wayland-scanner needs to be propagated as both build
|
|
|
|
# (for the wayland-scanner binary) and host (for the
|
|
|
|
# actual wayland.xml protocol definition)
|
|
|
|
propagatedBuildInputs = [ qtbase qtdeclarative wayland-scanner ];
|
|
|
|
propagatedNativeBuildInputs = [ wayland wayland-scanner ];
|
2022-12-17 10:02:37 +00:00
|
|
|
buildInputs = [ wayland libdrm ];
|
2022-06-16 17:23:12 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2024-07-27 06:49:29 +00:00
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
# Replace vendored wayland.xml with our matching version
|
|
|
|
# FIXME: remove when upstream updates past 1.23
|
|
|
|
postPatch = ''
|
|
|
|
cp ${wayland-scanner}/share/wayland/wayland.xml src/3rdparty/protocol/wayland/wayland.xml
|
|
|
|
'';
|
2022-06-16 17:23:12 +00:00
|
|
|
}
|