2009-04-01 10:47:19 +01:00
|
|
|
{ stdenv, fetchurl, autoconf, automake, libtool, libxml2, cppunit, boost
|
|
|
|
, apr, aprutil, db45, expat
|
|
|
|
}:
|
2007-11-11 16:22:29 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-02-12 14:52:23 +00:00
|
|
|
name = "log4cxx-0.10.0";
|
2009-04-01 10:47:19 +01:00
|
|
|
|
2009-02-12 14:52:23 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = http://apache.mirrors.hoobly.com/logging/log4cxx/0.10.0/apache-log4cxx-0.10.0.tar.gz;
|
|
|
|
sha256 = "130cjafck1jlqv92mxbn47yhxd2ccwwnprk605c6lmm941i3kq0d";
|
|
|
|
};
|
2013-11-22 14:28:25 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e '1,/^#include/ {
|
|
|
|
/^#include/i \
|
|
|
|
#include <cstdio> \
|
|
|
|
#include <cstdlib> \
|
|
|
|
#include <cstring>
|
|
|
|
}' src/examples/cpp/console.cpp \
|
|
|
|
src/main/cpp/inputstreamreader.cpp \
|
|
|
|
src/main/cpp/socketoutputstream.cpp
|
|
|
|
'';
|
|
|
|
|
2009-04-01 10:47:19 +01:00
|
|
|
buildInputs = [autoconf automake libtool libxml2 cppunit boost apr aprutil db45 expat];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://logging.apache.org/log4cxx/index.html;
|
|
|
|
description = "A logging framework for C++ patterned after Apache log4j";
|
|
|
|
};
|
2007-11-11 16:22:29 +00:00
|
|
|
}
|