at master 844 B view raw
1{ 2 pkgsBuildBuild, 3 stdenv, 4 lib, 5 qtModule, 6 qtbase, 7 qtdeclarative, 8 wayland, 9 wayland-scanner, 10 pkg-config, 11 libdrm, 12}: 13 14qtModule { 15 pname = "qtwayland"; 16 17 # wayland-scanner needs to be propagated as both build 18 # (for the wayland-scanner binary) and host (for the 19 # actual wayland.xml protocol definition) 20 propagatedBuildInputs = [ 21 qtbase 22 qtdeclarative 23 wayland 24 wayland-scanner 25 ]; 26 propagatedNativeBuildInputs = [ 27 wayland 28 wayland-scanner 29 ]; 30 buildInputs = [ libdrm ]; 31 nativeBuildInputs = [ pkg-config ]; 32 33 cmakeFlags = lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ 34 "-DQt6WaylandScannerTools_DIR=${pkgsBuildBuild.qt6.qtwayland}/lib/cmake/Qt6WaylandScannerTools" 35 ]; 36 37 meta = { 38 platforms = lib.platforms.unix; 39 badPlatforms = lib.platforms.darwin; 40 }; 41}