depot/third_party/nixpkgs/pkgs/development/libraries/log4cxx/default.nix

28 lines
773 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, libtool, cmake, libxml2, cppunit, boost
, apr, aprutil, db, expat
}:
stdenv.mkDerivation rec {
pname = "log4cxx";
version = "1.1.0";
src = fetchurl {
url = "mirror://apache/logging/log4cxx/${version}/apache-${pname}-${version}.tar.gz";
hash = "sha256-H8fYJpdTQYS8D3VzSNlp0khSuUj2PWsXKD/R7inCwoo=";
};
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 = "A logging framework for C++ patterned after Apache log4j";
license = lib.licenses.asl20;
platforms = lib.platforms.unix;
};
}