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.

67 lines
1.3 KiB
Nix
Raw Normal View History

2024-09-09 23:24:41 +00:00
{
lib,
stdenv,
fetchFromGitLab,
meson,
ninja,
pkg-config,
qt6,
wayland,
glib,
wrapGAppsHook3,
2024-09-09 23:25:26 +00:00
nix-update-script,
2023-09-28 11:14:52 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
2023-09-28 11:14:52 +00:00
pname = "waycheck";
2024-10-26 06:09:08 +00:00
version = "1.4.0";
2023-09-28 11:14:52 +00:00
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "serebit";
repo = "waycheck";
rev = "v${finalAttrs.version}";
2024-10-26 06:09:08 +00:00
hash = "sha256-wawz7QCzpeQgdxwFQaZ/yV//AepEE+FLNG7ho/lHtFE=";
2023-09-28 11:14:52 +00:00
};
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook3
2023-09-28 11:14:52 +00:00
qt6.wrapQtAppsHook
];
buildInputs = [
glib
wayland
qt6.qtwayland
];
dontWrapGApps = true;
postPatch = ''
substituteInPlace scripts/mesonPostInstall.sh \
--replace-fail "#!/usr/bin/env sh" "#!${stdenv.shell}" \
--replace-fail "update-desktop-database -q" "update-desktop-database $out/share/applications"
2023-09-28 11:14:52 +00:00
'';
preFixup = ''
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
2023-09-28 11:14:52 +00:00
'';
2024-09-09 23:25:26 +00:00
passthru.updateScript = nix-update-script { };
meta = {
2023-09-28 11:14:52 +00:00
description = "Simple GUI that displays the protocols implemented by a Wayland compositor";
homepage = "https://gitlab.freedesktop.org/serebit/waycheck";
license = lib.licenses.asl20;
2024-09-09 23:25:46 +00:00
maintainers = with lib.maintainers; [
julienmalka
pandapip1
];
2023-09-28 11:14:52 +00:00
mainProgram = "waycheck";
platforms = lib.platforms.linux;
2023-09-28 11:14:52 +00:00
};
})