blob: 73eb3146664ee99618d58b0ca2050c7ee353f7eb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{ 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;
};
})
|