Merge pull request #257821 from JulienMalka/init-waycheck

waycheck: init at 0.1.3
This commit is contained in:
Weijia Wang 2023-10-09 16:57:48 +02:00 committed by GitHub
commit 56c1aa5d46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,58 @@
{ lib
, stdenv
, fetchFromGitLab
, meson
, ninja
, pkg-config
, qt6
, wayland
, glib
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "waycheck";
version = "0.1.3";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "serebit";
repo = "waycheck";
rev = "v${version}";
hash = "sha256-DbXc1Q/ZIqlIMocFld3fOmUp44rU3fEzazHKSDdqMNs=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook
qt6.wrapQtAppsHook
];
buildInputs = [
glib
wayland
qt6.qtwayland
];
dontWrapGApps = true;
preFixup = ''
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
preInstall = ''
substituteInPlace ../scripts/mesonPostInstall.sh \
--replace "update-desktop-database -q" "update-desktop-database $out/share/applications"
'';
meta = with lib; {
description = "Simple GUI that displays the protocols implemented by a Wayland compositor";
homepage = "https://gitlab.freedesktop.org/serebit/waycheck";
license = licenses.asl20;
maintainers = with maintainers; [ julienmalka ];
mainProgram = "waycheck";
platforms = platforms.linux;
};
}