2008-02-10 16:44:43 +00:00
|
|
|
args : with args; let
|
2008-07-08 06:51:59 +01:00
|
|
|
patch = ./ltrace_0.5-3.diff.gz;
|
2008-08-19 06:54:09 +01:00
|
|
|
localDefs = with builderDefs;
|
2008-11-04 21:24:10 +00:00
|
|
|
builderDefs.passthru.function {
|
2007-11-03 08:19:00 +00: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-*;
|
|
|
|
";
|
2009-05-20 00:25:58 +01:00
|
|
|
preBuild = fullDepEntry (''
|
2008-02-10 16:44:43 +00:00
|
|
|
gunzip < ${patch} | patch -Np1
|
|
|
|
sed -e s@-Werror@@ -i Makefile.in
|
|
|
|
'')["minInit" "doUnpack"];
|
2008-08-19 06:54:09 +01:00
|
|
|
};
|
2008-01-23 18:11:03 +00:00
|
|
|
in with localDefs;
|
2007-11-03 08:19:00 +00:00
|
|
|
let
|
2009-05-20 00:25:58 +01:00
|
|
|
preConfigure = fullDepEntry ("
|
2007-11-03 08:19:00 +00:00
|
|
|
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 16:44:43 +00:00
|
|
|
(textClosure localDefs [preBuild preConfigure doConfigure doMakeInstall doForceShare]);
|
2007-11-03 08:19:00 +00:00
|
|
|
meta = {
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "Library call tracer";
|
2008-03-02 18:49:31 +00:00
|
|
|
inherit src;
|
2007-11-03 08:19:00 +00:00
|
|
|
};
|
|
|
|
}
|