nixpkgs/pkgs/development/libraries/log4cxx/default.nix
aszlig 440af2e5e5
log4cxx: Clean up package expression.
Add meta.license and use a version attribute instead of hardcoding
everything.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2013-11-22 17:26:00 +01:00

33 lines
948 B
Nix

{ stdenv, fetchurl, autoconf, automake, libtool, libxml2, cppunit, boost
, apr, aprutil, db45, expat
}:
stdenv.mkDerivation rec {
name = "log4cxx-${version}";
version = "0.10.0";
src = fetchurl {
url = "http://apache.mirrors.hoobly.com/logging/log4cxx/${version}/apache-${name}.tar.gz";
sha256 = "130cjafck1jlqv92mxbn47yhxd2ccwwnprk605c6lmm941i3kq0d";
};
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
'';
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";
license = stdenv.lib.licenses.asl20;
};
}