1{ lib, stdenv, autoreconfHook, fetchFromGitLab, libX11, xauth, makeWrapper }:
2
3stdenv.mkDerivation rec {
4 pname = "xtrace";
5 version = "1.4.0";
6
7 src = fetchFromGitLab {
8 domain = "salsa.debian.org";
9 owner = "debian";
10 repo = pname;
11 rev = "xtrace-${version}";
12 sha256 = "1yff6x847nksciail9jly41mv70sl8sadh0m5d847ypbjmxcwjpq";
13 };
14
15 nativeBuildInputs = [ autoreconfHook makeWrapper ];
16 buildInputs = [ libX11 ];
17
18 postInstall = ''
19 wrapProgram "$out/bin/xtrace" \
20 --prefix PATH ':' "${xauth}/bin"
21 '';
22
23 meta = with lib; {
24 homepage = "https://salsa.debian.org/debian/xtrace";
25 description = "Tool to trace X11 protocol connections";
26 license = licenses.gpl2;
27 maintainers = with maintainers; [ viric ];
28 platforms = with platforms; linux;
29 };
30}