depot/third_party/nixpkgs/pkgs/by-name/wa/waycheck/package.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

58 lines
1.1 KiB
Nix

{ 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;
};
}