mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
50 lines
866 B
Nix
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;
|
|
};
|
|
})
|