2023-05-18 14:00:28 +00:00
|
|
|
{ lib, stdenv, fetchurl, libtool, cmake, libxml2, cppunit, boost
|
2014-01-31 20:05:37 +00:00
|
|
|
, apr, aprutil, db, expat
|
2009-04-01 09:47:19 +00:00
|
|
|
}:
|
2007-11-11 16:22:29 +00:00
|
|
|
|
2013-11-22 15:26:26 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "log4cxx";
|
2023-05-18 14:00:28 +00:00
|
|
|
version = "1.1.0";
|
2013-11-22 15:26:26 +00:00
|
|
|
|
2009-02-12 14:52:23 +00:00
|
|
|
src = fetchurl {
|
2023-05-18 14:00:28 +00:00
|
|
|
url = "mirror://apache/logging/log4cxx/${version}/apache-${pname}-${version}.tar.gz";
|
|
|
|
hash = "sha256-H8fYJpdTQYS8D3VzSNlp0khSuUj2PWsXKD/R7inCwoo=";
|
2009-02-12 14:52:23 +00:00
|
|
|
};
|
2013-11-22 14:28:25 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
2023-05-18 14:00:28 +00:00
|
|
|
substituteInPlace CMakeLists.txt --replace "\\\''${prefix}/" ""
|
2013-11-22 14:28:25 +00:00
|
|
|
'';
|
|
|
|
|
2017-08-26 08:42:42 +00:00
|
|
|
buildInputs = [ libxml2 cppunit boost apr aprutil db expat ];
|
2023-05-18 14:00:28 +00:00
|
|
|
nativeBuildInputs = [ libtool cmake ];
|
2009-04-01 09:47:19 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://logging.apache.org/log4cxx/index.html";
|
2009-04-01 09:47:19 +00:00
|
|
|
description = "A logging framework for C++ patterned after Apache log4j";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
platforms = lib.platforms.unix;
|
2009-04-01 09:47:19 +00:00
|
|
|
};
|
2007-11-11 16:22:29 +00:00
|
|
|
}
|