2023-05-24 13:37:59 +00:00
|
|
|
{ lib, stdenv, fetchurl, libtool, cmake, libxml2, cppunit, boost
|
2020-04-24 23:36:52 +00:00
|
|
|
, apr, aprutil, db, expat
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "log4cxx";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-05-24 13:37:59 +00:00
|
|
|
url = "mirror://apache/logging/log4cxx/${version}/apache-${pname}-${version}.tar.gz";
|
|
|
|
hash = "sha256-H8fYJpdTQYS8D3VzSNlp0khSuUj2PWsXKD/R7inCwoo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2023-05-24 13:37:59 +00:00
|
|
|
substituteInPlace CMakeLists.txt --replace "\\\''${prefix}/" ""
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ libxml2 cppunit boost apr aprutil db expat ];
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = [ libtool cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://logging.apache.org/log4cxx/index.html";
|
|
|
|
description = "A logging framework for C++ patterned after Apache log4j";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|