git.iko.soy/typeable/nixpkgs
on master help sign in
log4cxx: darwin compatibility

This patch replicates the patch logic from the brew recipe <https://github.com/Homebrew/homebrew/blob/56b57d583e874e6dfe7a417d329a147e4d4b064f/Library/Formula/log4cxx.rb> which is necessary to build on darwin.

commita37491386c795563a02917ce6c66766fd16381f0 authorAnthony Cowley <acowley@gmail.com> dateThu 31 Mar 2016, 22:35 (11 years ago) parent0660ff5
1 file changed+3
pkgs/development/libraries/log4cxx/default.nix+3
pkgs/development/libraries/log4cxx/default.nix+3
@@ -20,6 +20,9 @@ stdenv.mkDerivation rec {
2020 }' src/examples/cpp/console.cpp \
2121 src/main/cpp/inputstreamreader.cpp \
2222 src/main/cpp/socketoutputstream.cpp
23+ '' + stdenv.lib.optionalString stdenv.isDarwin ''
24+ sed -i 's/namespace std { class locale; }/#include <locale>/' src/main/include/log4cxx/helpers/simpledateformat.h
25+ sed -i 's/\(#include <cctype>\)/\1\n#include <cstdlib>/' src/main/cpp/stringhelper.cpp
2326 '';
2427
2528 buildInputs = [autoconf automake libtool libxml2 cppunit boost apr aprutil db expat];