depot/third_party/nixpkgs/pkgs/development/libraries/qt-6/modules/qtwayland.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

25 lines
712 B
Nix

{ qtModule
, qtbase
, qtdeclarative
, wayland
, wayland-scanner
, pkg-config
, libdrm
}:
qtModule {
pname = "qtwayland";
# 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 ];
buildInputs = [ wayland libdrm ];
nativeBuildInputs = [ pkg-config ];
# 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
'';
}