Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.0 KiB
Nix
Raw Normal View History

2023-10-28 17:43:07 +08:00
{
stdenv,
lib,
fetchFromGitLab,
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
(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;
};
})