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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
798 B
Nix
Raw Normal View History

{ lib, stdenv, autoreconfHook, fetchFromGitLab, libX11, xauth, makeWrapper }:
2019-06-20 21:40:01 +00:00
stdenv.mkDerivation rec {
pname = "xtrace";
version = "1.4.0";
2019-08-13 21:52:01 +00:00
src = fetchFromGitLab {
2019-06-20 21:40:01 +00:00
domain = "salsa.debian.org";
owner = "debian";
repo = pname;
rev = "xtrace-${version}";
sha256 = "1yff6x847nksciail9jly41mv70sl8sadh0m5d847ypbjmxcwjpq";
};
2019-06-20 21:40:01 +00:00
nativeBuildInputs = [ autoreconfHook makeWrapper ];
buildInputs = [ libX11 ];
2019-06-20 21:40:01 +00:00
postInstall = ''
wrapProgram "$out/bin/xtrace" \
--prefix PATH ':' "${xauth}/bin"
'';
meta = with lib; {
2019-06-20 21:40:01 +00:00
homepage = "https://salsa.debian.org/debian/xtrace";
description = "Tool to trace X11 protocol connections";
2019-06-20 21:40:01 +00:00
license = licenses.gpl2;
maintainers = with maintainers; [ viric ];
platforms = with platforms; linux;
};
}