2023-10-28 17:43:07 +08:00
|
|
|
{
|
|
|
|
|
stdenv,
|
|
|
|
|
lib,
|
|
|
|
|
fetchFromGitLab,
|
2025-01-25 16:28:57 +01:00
|
|
|
replaceVars,
|
2023-10-28 17:43:07 +08:00
|
|
|
meson,
|
|
|
|
|
pkg-config,
|
|
|
|
|
ninja,
|
|
|
|
|
qtbase,
|
|
|
|
|
qtwayland,
|
|
|
|
|
wayland,
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
|
pname = "wayqt";
|
2025-04-21 17:00:26 -03:00
|
|
|
version = "0.3.0";
|
2023-10-28 17:43:07 +08:00
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
|
owner = "desktop-frameworks";
|
|
|
|
|
repo = "wayqt";
|
|
|
|
|
rev = "v${finalAttrs.version}";
|
2025-04-21 17:00:26 -03:00
|
|
|
hash = "sha256-FPyHm96LYCTqMZlPrZoSPMeyocDjaCnaYJETH/nazBU=";
|
2023-10-28 17:43:07 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
|
# qmake get qtbase's path, but wayqt need qtwayland
|
2025-01-25 16:28:57 +01:00
|
|
|
(replaceVars ./fix-qtwayland-header-path.diff {
|
2023-10-28 17:43:07 +08:00
|
|
|
qtWaylandPath = "${qtwayland}/include";
|
|
|
|
|
})
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
meson
|
|
|
|
|
pkg-config
|
|
|
|
|
ninja
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
|
qtbase
|
|
|
|
|
qtwayland
|
|
|
|
|
wayland
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
|
|
outputs = [
|
|
|
|
|
"out"
|
|
|
|
|
"dev"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
|
homepage = "https://gitlab.com/desktop-frameworks/wayqt";
|
|
|
|
|
description = "Qt-based library to handle Wayland and Wlroots protocols to be used with any Qt project";
|
|
|
|
|
maintainers = with lib.maintainers; [ rewine ];
|
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
|
};
|
|
|
|
|
})
|