summary refs log tree commit diff
path: root/pkgs/development/tools/misc/ltrace/default.nix
blob: 23b44bf3b5b7f7b89c74956f8f6f333ad076fdd2 (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
args : with args;
	with builderDefs {
		src = /* put a fetchurl here */
	fetchurl {
		url = ftp://ftp.debian.org/debian/pool/main/l/ltrace/ltrace_0.5.orig.tar.gz;
		sha256 = "1nbjcnizc0w3p41g7hqf1qiany8qk4xs9g4zrlq4fpxdykdwla3v";
	};

		buildInputs = [elfutils ];
		configureFlags = [];
		goSrcDir = "
			cd ltrace-*;
		";
	} null; /* null is a terminator for sumArgs */
let
	preConfigure = FullDepEntry ("
		sed -e 's@-o root -g root@@' -i Makefile.in;
	") [doUnpack minInit];
in
stdenv.mkDerivation rec {
	name = "ltrace-0.5";
	builder = writeScript (name + "-builder")
		(textClosure [preConfigure doConfigure doMakeInstall doForceShare]);
	meta = {
		description = "
	Library call tracer.
";
	};
}