mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
f550c12a25
Fixes CVE-2023-31038. https://lists.apache.org/thread/vgjlpdf353vv91gryspwxrzj6p0fbjd9 https://github.com/apache/logging-log4cxx/compare/v0_10_0...rel/v1.1.0
28 lines
773 B
Nix
28 lines
773 B
Nix
{ 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;
|
|
};
|
|
}
|