wlcs: Migrate to finalAttrs, enable strictDeps, add pkg-config details & test

This commit is contained in:
OPNA2608 2023-10-14 14:26:52 +02:00
parent b6764b33fc
commit db9f5a667d

View File

@ -2,27 +2,32 @@
, lib
, gitUpdater
, fetchFromGitHub
, testers
, cmake
, pkg-config
, boost
, gtest
, wayland
, wayland-scanner
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "wlcs";
version = "1.6.1";
src = fetchFromGitHub {
owner = "MirServer";
repo = "wlcs";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-YYrhcN1BSJISn/7lxu7Db5YaOK+okdHVJuMwqSDzAIU=";
};
strictDeps = true;
nativeBuildInputs = [
cmake
pkg-config
wayland-scanner
];
buildInputs = [
@ -31,8 +36,11 @@ stdenv.mkDerivation rec {
wayland
];
passthru.updateScript = gitUpdater {
rev-prefix = "v";
passthru = {
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
updateScript = gitUpdater {
rev-prefix = "v";
};
};
meta = with lib; {
@ -57,5 +65,8 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Only;
maintainers = with maintainers; [ OPNA2608 ];
platforms = platforms.linux;
pkgConfigModules = [
"wlcs"
];
};
}
})