nixpkgs-suyu/pkgs/tools/X11/xtrace/default.nix

31 lines
799 B
Nix
Raw Normal View History

{ 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 = "xtrace, a tool to trace X11 protocol connections";
license = "GPLv2";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}