nixpkgs/pkgs/by-name/wa/waycheck/package.nix

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

59 lines
1.2 KiB
Nix
Raw Normal View History

2023-09-28 13:14:52 +02:00
{ lib
, stdenv
, fetchFromGitLab
, meson
, ninja
, pkg-config
, qt6
, wayland
, glib
, wrapGAppsHook
}:
stdenv.mkDerivation (finalAttrs: {
2023-09-28 13:14:52 +02:00
pname = "waycheck";
2024-03-01 14:39:54 +01:00
version = "1.1.1";
2023-09-28 13:14:52 +02:00
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "serebit";
repo = "waycheck";
rev = "v${finalAttrs.version}";
2024-03-01 14:39:54 +01:00
hash = "sha256-kwkdTMA15oJHz9AXEkBGeuzYdEUpNuv/xnhzoKOHCE4=";
2023-09-28 13:14:52 +02:00
};
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 = {
2023-09-28 13:14:52 +02:00
description = "Simple GUI that displays the protocols implemented by a Wayland compositor";
homepage = "https://gitlab.freedesktop.org/serebit/waycheck";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ julienmalka federicoschonborn ];
2023-09-28 13:14:52 +02:00
mainProgram = "waycheck";
platforms = lib.platforms.linux;
2023-09-28 13:14:52 +02:00
};
})