depot/pkgs/development/libraries/qt-6/modules/qtwayland.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00: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
'';
}