about summary refs log tree commit diff
path: root/pkgs/tools/X11/xtrace/default.nix
blob: 591b1ef13ab1e484bc6686ab436f820978e41998 (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
{ lib, stdenv, autoreconfHook, fetchFromGitLab, libX11, xauth, makeWrapper }:

stdenv.mkDerivation rec {
  pname = "xtrace";
  version = "1.4.0";

  src = fetchFromGitLab {
    domain = "salsa.debian.org";
    owner = "debian";
    repo = pname;
    rev = "xtrace-${version}";
    sha256 = "1yff6x847nksciail9jly41mv70sl8sadh0m5d847ypbjmxcwjpq";
  };

  nativeBuildInputs = [ autoreconfHook makeWrapper ];
  buildInputs = [ libX11 ];

  postInstall = ''
    wrapProgram "$out/bin/xtrace" \
        --prefix PATH ':' "${xauth}/bin"
  '';

  meta = with lib; {
    homepage = "https://salsa.debian.org/debian/xtrace";
    description = "Tool to trace X11 protocol connections";
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ viric ];
    platforms = with platforms; linux;
    mainProgram = "xtrace";
  };
}