2022-12-31 13:59:50 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, gitUpdater
|
|
|
|
, fetchFromGitHub
|
2023-10-14 12:26:52 +00:00
|
|
|
, testers
|
2022-12-31 13:59:50 +00:00
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, boost
|
|
|
|
, gtest
|
|
|
|
, wayland
|
2023-10-14 12:26:52 +00:00
|
|
|
, wayland-scanner
|
2022-12-31 13:59:50 +00:00
|
|
|
}:
|
|
|
|
|
2023-10-14 12:26:52 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-12-31 13:59:50 +00:00
|
|
|
pname = "wlcs";
|
2023-10-14 12:17:34 +00:00
|
|
|
version = "1.6.1";
|
2022-12-31 13:59:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MirServer";
|
|
|
|
repo = "wlcs";
|
2023-10-14 12:26:52 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2023-10-14 12:17:34 +00:00
|
|
|
hash = "sha256-YYrhcN1BSJISn/7lxu7Db5YaOK+okdHVJuMwqSDzAIU=";
|
2022-12-31 13:59:50 +00:00
|
|
|
};
|
|
|
|
|
2023-10-14 12:26:52 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2022-12-31 13:59:50 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
2023-10-14 12:26:52 +00:00
|
|
|
wayland-scanner
|
2022-12-31 13:59:50 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
gtest
|
|
|
|
wayland
|
|
|
|
];
|
|
|
|
|
2023-10-14 12:26:52 +00:00
|
|
|
passthru = {
|
|
|
|
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
updateScript = gitUpdater {
|
|
|
|
rev-prefix = "v";
|
|
|
|
};
|
2022-12-31 13:59:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Wayland Conformance Test Suite";
|
|
|
|
longDescription = ''
|
|
|
|
wlcs aspires to be a protocol-conformance-verifying test suite usable by Wayland
|
|
|
|
compositor implementors.
|
|
|
|
|
|
|
|
It is growing out of porting the existing Weston test suite to be run in Mir's
|
|
|
|
test suite, but it is designed to be usable by any compositor.
|
|
|
|
|
|
|
|
wlcs relies on compositors providing an integration module, providing wlcs with
|
|
|
|
API hooks to start a compositor, connect a client, move a window, and so on.
|
|
|
|
This makes both writing and debugging tests easier - the tests are (generally)
|
|
|
|
in the same address space as the compositor, so there is a consistent global
|
|
|
|
clock available, it's easier to poke around in compositor internals, and
|
|
|
|
standard debugging tools can follow control flow from the test client to the
|
|
|
|
compositor and back again.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/MirServer/wlcs";
|
|
|
|
changelog = "https://github.com/MirServer/wlcs/releases/tag/v${version}";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ OPNA2608 ];
|
2023-01-20 16:43:33 +00:00
|
|
|
platforms = platforms.linux;
|
2023-10-14 12:26:52 +00:00
|
|
|
pkgConfigModules = [
|
|
|
|
"wlcs"
|
|
|
|
];
|
2022-12-31 13:59:50 +00:00
|
|
|
};
|
2023-10-14 12:26:52 +00:00
|
|
|
})
|