weechat: Work around darwin linking issue

This commit is contained in:
Moritz Ulrich 2016-10-03 19:22:08 +02:00
parent e5c6f35a49
commit 38dbb8008d

View File

@ -50,7 +50,9 @@ stdenv.mkDerivation rec {
++ optional tclSupport tcl
++ extraBuildInputs;
NIX_CFLAGS_COMPILE = "-I${python}/include/${python.libPrefix}";
NIX_CFLAGS_COMPILE = "-I${python}/include/${python.libPrefix}"
# Fix '_res_9_init: undefined symbol' error
+ (stdenv.lib.optionalString stdenv.isDarwin "-DBIND_8_COMPAT=1");
postInstall = with stdenv.lib; ''
NIX_PYTHONPATH="$out/lib/${python.libPrefix}/site-packages"