2021-02-17 17:02:09 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2021-03-15 08:37:03 +00:00
|
|
|
, fetchFromSourcehut
|
2021-02-17 17:02:09 +00:00
|
|
|
, pkg-config
|
|
|
|
, scdoc
|
2021-07-21 07:28:18 +00:00
|
|
|
, wayland-scanner
|
2021-02-17 17:02:09 +00:00
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
, libxkbcommon
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wev";
|
|
|
|
version = "1.0.0";
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~sircmpwn";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0l71v3fzgiiv6xkk365q1l08qvaymxd4kpaya6r2g8yzkr7i2hms";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
strictDeps = true;
|
2022-05-18 14:49:53 +00:00
|
|
|
# for scdoc
|
|
|
|
depsBuildBuild = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2021-07-21 07:28:18 +00:00
|
|
|
nativeBuildInputs = [ pkg-config scdoc wayland-scanner ];
|
|
|
|
buildInputs = [ wayland wayland-protocols libxkbcommon ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-02-17 17:02:09 +00:00
|
|
|
homepage = "https://git.sr.ht/~sircmpwn/wev";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Wayland event viewer";
|
|
|
|
longDescription = ''
|
2022-12-28 21:21:41 +00:00
|
|
|
This is a tool for debugging events on a Wayland window, analogous to the
|
2020-04-24 23:36:52 +00:00
|
|
|
X11 tool xev.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
2023-03-08 16:32:21 +00:00
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "wev";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|