git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #14357 from acowley/log4cxx

log4cxx: darwin compatibility

commitf1beff232dc734e909f089f79b630420b20e795a authorvbgl <vbgl@users.noreply.github.com> dateFri 1 Apr 2016, 11:26 (11 years ago) parentf07b934a374913
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];