nixpkgs-suyu/pkgs/tools/X11/xtrace/default.nix
Kosyrev Serge eda6fd83a8 xtrace: fix build and update to 1.3.1
Alioth now requires a login before you can download tarballs.
2014-06-15 14:10:35 +04:00

30 lines
799 B
Nix

{ 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;
};
}