depot/third_party/nixpkgs/pkgs/development/libraries/log4cxx/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

27 lines
771 B
Nix

{ lib, stdenv, fetchurl, libtool, cmake, libxml2, cppunit, boost
, apr, aprutil, db, expat
}:
stdenv.mkDerivation rec {
pname = "log4cxx";
version = "1.2.0";
src = fetchurl {
url = "mirror://apache/logging/log4cxx/${version}/apache-${pname}-${version}.tar.gz";
hash = "sha256-CfR0iqVnXvXAdwvtv14ASIZokzxak1pDrFuFviQ2xIo=";
};
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;
};
}