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

let version = "1.3.1"; in
stdenv.mkDerivation {
  name = "xtrace-${version}";
  src = fetchgit {
    url = "git://git.debian.org/xtrace/xtrace.git";
    rev = "refs/tags/xtrace-1.3.1";
    sha256 = "0csjw88ynzzcmx1jlb65c74r2sp9dzxn00airsxxfsipb74049d0";
  };

  buildInputs = [ libX11 makeWrapper autoreconfHook ];

  preConfigure = ''
    ./autogen.sh
  '';

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

  meta = {
    homepage = http://xtrace.alioth.debian.org/;
    description = "Tool to trace X11 protocol connections";
    license = stdenv.lib.licenses.gpl2;
    maintainers = with stdenv.lib.maintainers; [viric];
    platforms = with stdenv.lib.platforms; linux;
  };
}