depot/third_party/nixpkgs/pkgs/by-name/wa/waycheck/package.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

59 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchFromGitLab
, meson
, ninja
, pkg-config
, qt6
, wayland
, glib
, wrapGAppsHook3
}:
stdenv.mkDerivation (finalAttrs: {
pname = "waycheck";
version = "1.2.1";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "serebit";
repo = "waycheck";
rev = "v${finalAttrs.version}";
hash = "sha256-82jOYWhgD9JNDn24eCAeMm63R5BTy20lQVpiAwhDIOk=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook3
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"
'';
preFixup = ''
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
meta = {
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 ];
mainProgram = "waycheck";
platforms = lib.platforms.linux;
};
})