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