pythonPackages.twisted: Fix inotify on Linux.

This commit is contained in:
Corbin 2017-01-21 19:17:46 -08:00
parent c90cab9d8a
commit 46a522698e

View File

@ -26101,6 +26101,13 @@ in {
propagatedBuildInputs = with self; [ zope_interface ];
# Patch t.p._inotify to point to libc. Without this,
# twisted.python.runtime.platform.supportsINotify() == False
patchPhase = optionalString stdenv.isLinux ''
substituteInPlace twisted/python/_inotify.py --replace \
"ctypes.util.find_library('c')" "'${stdenv.glibc.out}/lib/libc.so.6'"
'';
# Generate Twisted's plug-in cache. Twisted users must do it as well. See
# http://twistedmatrix.com/documents/current/core/howto/plugin.html#auto3
# and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477103 for