mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
qt6,
|
|
wayland,
|
|
glib,
|
|
wrapGAppsHook3,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "waycheck";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.freedesktop.org";
|
|
owner = "serebit";
|
|
repo = "waycheck";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-wawz7QCzpeQgdxwFQaZ/yV//AepEE+FLNG7ho/lHtFE=";
|
|
};
|
|
|
|
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[@]}")
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
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
|
|
pandapip1
|
|
];
|
|
mainProgram = "waycheck";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|