Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 fetchFromGitLab, 5 replaceVars, 6 meson, 7 pkg-config, 8 ninja, 9 qtbase, 10 qtwayland, 11 wayland, 12}: 13 14stdenv.mkDerivation (finalAttrs: { 15 pname = "wayqt"; 16 version = "0.3.0"; 17 18 src = fetchFromGitLab { 19 owner = "desktop-frameworks"; 20 repo = "wayqt"; 21 rev = "v${finalAttrs.version}"; 22 hash = "sha256-FPyHm96LYCTqMZlPrZoSPMeyocDjaCnaYJETH/nazBU="; 23 }; 24 25 patches = [ 26 # qmake get qtbase's path, but wayqt need qtwayland 27 (replaceVars ./fix-qtwayland-header-path.diff { 28 qtWaylandPath = "${qtwayland}/include"; 29 }) 30 ]; 31 32 nativeBuildInputs = [ 33 meson 34 pkg-config 35 ninja 36 ]; 37 38 buildInputs = [ 39 qtbase 40 qtwayland 41 wayland 42 ]; 43 44 dontWrapQtApps = true; 45 46 outputs = [ 47 "out" 48 "dev" 49 ]; 50 51 meta = { 52 homepage = "https://gitlab.com/desktop-frameworks/wayqt"; 53 description = "Qt-based library to handle Wayland and Wlroots protocols to be used with any Qt project"; 54 maintainers = with lib.maintainers; [ rewine ]; 55 platforms = lib.platforms.linux; 56 license = lib.licenses.mit; 57 }; 58})