Files
nixpkgs/pkgs/by-name/lo/log4cxx/package.nix
2026-04-04 12:39:33 +00:00

50 lines
866 B
Nix

{
lib,
stdenv,
fetchurl,
libtool,
cmake,
libxml2,
cppunit,
boost,
apr,
aprutil,
db,
expat,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "log4cxx";
version = "1.7.0";
src = fetchurl {
url = "mirror://apache/logging/log4cxx/${finalAttrs.version}/apache-log4cxx-${finalAttrs.version}.tar.gz";
hash = "sha256-uUP/FwOT5M44GrTEkUOWEnv01E+4vR8OXvhFPzxNNkw=";
};
postPatch = ''
substituteInPlace CMakeLists.txt --replace "\\\''${prefix}/" ""
'';
buildInputs = [
libxml2
cppunit
boost
apr
aprutil
db
expat
];
nativeBuildInputs = [
libtool
cmake
];
meta = {
homepage = "https://logging.apache.org/log4cxx/index.html";
description = "Logging framework for C++ patterned after Apache log4j";
license = lib.licenses.asl20;
platforms = lib.platforms.unix;
};
})