2021-02-16 04:23:16 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2021-03-13 12:33:02 +01:00
|
|
|
, fetchFromSourcehut
|
2021-02-16 04:23:16 +01:00
|
|
|
, pkg-config
|
|
|
|
, scdoc
|
2021-07-03 17:02:23 +02:00
|
|
|
, wayland-scanner
|
2021-02-16 04:23:16 +01:00
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
, libxkbcommon
|
2019-08-25 20:11:30 +02:00
|
|
|
}:
|
|
|
|
|
2020-03-23 14:45:14 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wev";
|
|
|
|
version = "1.0.0";
|
2019-08-25 20:11:30 +02:00
|
|
|
|
2021-03-13 12:33:02 +01:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~sircmpwn";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0l71v3fzgiiv6xkk365q1l08qvaymxd4kpaya6r2g8yzkr7i2hms";
|
2019-08-25 20:11:30 +02:00
|
|
|
};
|
|
|
|
|
2022-05-09 16:18:15 +02:00
|
|
|
# for scdoc
|
|
|
|
depsBuildBuild = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2021-07-03 17:02:23 +02:00
|
|
|
nativeBuildInputs = [ pkg-config scdoc wayland-scanner ];
|
|
|
|
buildInputs = [ wayland wayland-protocols libxkbcommon ];
|
2019-08-25 20:11:30 +02:00
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-02-16 04:23:16 +01:00
|
|
|
homepage = "https://git.sr.ht/~sircmpwn/wev";
|
2019-08-25 20:11:30 +02:00
|
|
|
description = "Wayland event viewer";
|
|
|
|
longDescription = ''
|
2022-12-18 01:39:44 +01:00
|
|
|
This is a tool for debugging events on a Wayland window, analogous to the
|
2019-08-25 20:11:30 +02:00
|
|
|
X11 tool xev.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
2021-02-16 04:23:16 +01:00
|
|
|
platforms = platforms.unix;
|
2019-08-25 20:11:30 +02:00
|
|
|
};
|
|
|
|
}
|