2008-02-10 17:44:43 +01:00
|
|
|
args : with args; let
|
|
|
|
patch = fetchurl {
|
|
|
|
url = ftp://ftp.debian.org/debian/pool/main/l/ltrace/ltrace_0.5-3.diff.gz;
|
|
|
|
sha256 = "0rin25si7117wld5bc7vf3d73c5k9ph3zach7cbg9h9vvz376c26";
|
|
|
|
};
|
|
|
|
localDefs = with (builderDefs {src="";} null);
|
|
|
|
builderDefs {
|
2007-11-03 09:19:00 +01:00
|
|
|
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-*;
|
|
|
|
";
|
2008-02-10 17:44:43 +01:00
|
|
|
preBuild = FullDepEntry (''
|
|
|
|
gunzip < ${patch} | patch -Np1
|
|
|
|
sed -e s@-Werror@@ -i Makefile.in
|
|
|
|
'')["minInit" "doUnpack"];
|
2007-11-03 09:19:00 +01:00
|
|
|
} null; /* null is a terminator for sumArgs */
|
2008-01-23 19:11:03 +01:00
|
|
|
in with localDefs;
|
2007-11-03 09:19:00 +01:00
|
|
|
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")
|
2008-02-10 17:44:43 +01:00
|
|
|
(textClosure localDefs [preBuild preConfigure doConfigure doMakeInstall doForceShare]);
|
2007-11-03 09:19:00 +01:00
|
|
|
meta = {
|
|
|
|
description = "
|
|
|
|
Library call tracer.
|
|
|
|
";
|
2008-03-02 19:49:31 +01:00
|
|
|
inherit src;
|
2007-11-03 09:19:00 +01:00
|
|
|
};
|
|
|
|
}
|