mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
pythonPackages.twisted: Fix inotify on Linux.
This commit is contained in:
parent
c90cab9d8a
commit
46a522698e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user