1{
2 lib,
3 stdenv,
4 fetchFromSourcehut,
5 pkg-config,
6 scdoc,
7 wayland-scanner,
8 wayland,
9 wayland-protocols,
10 libxkbcommon,
11}:
12
13stdenv.mkDerivation {
14 pname = "wev";
15 version = "1.0.0-unstable-2022-09-14";
16
17 src = fetchFromSourcehut {
18 owner = "~sircmpwn";
19 repo = "wev";
20 rev = "83de8e931ab04ce3322a58b359d8effa7901b21c";
21 sha256 = "sha256-lNFgjRXO/ZbcXJF06DykPoJJ6/a8ZfVA6g95i+rNdWs=";
22 };
23
24 strictDeps = true;
25 # for scdoc
26 depsBuildBuild = [
27 pkg-config
28 ];
29 nativeBuildInputs = [
30 pkg-config
31 scdoc
32 wayland-scanner
33 ];
34 buildInputs = [
35 wayland
36 wayland-protocols
37 libxkbcommon
38 ];
39
40 installFlags = [ "PREFIX=$(out)" ];
41
42 meta = with lib; {
43 homepage = "https://git.sr.ht/~sircmpwn/wev";
44 description = "Wayland event viewer";
45 longDescription = ''
46 This is a tool for debugging events on a Wayland window, analogous to the
47 X11 tool xev.
48 '';
49 license = licenses.mit;
50 maintainers = with maintainers; [ rewine ];
51 platforms = platforms.linux;
52 mainProgram = "wev";
53 };
54}