about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorCorbin <cds@corbinsimpson.com>2017-01-21 19:17:46 -0800
committerCorbin <cds@corbinsimpson.com>2017-01-23 17:55:41 -0800
commit46a522698e6aaf144e18876b1d5b14d03dc2523d (patch)
treec5375b4bb0413fb9c623533c84af39b5fcd98dfb /pkgs
parentc90cab9d8ae1c164656e4bc87b8b4c706160ac1e (diff)
downloadnixlib-46a522698e6aaf144e18876b1d5b14d03dc2523d.tar
nixlib-46a522698e6aaf144e18876b1d5b14d03dc2523d.tar.gz
nixlib-46a522698e6aaf144e18876b1d5b14d03dc2523d.tar.bz2
nixlib-46a522698e6aaf144e18876b1d5b14d03dc2523d.tar.lz
nixlib-46a522698e6aaf144e18876b1d5b14d03dc2523d.tar.xz
nixlib-46a522698e6aaf144e18876b1d5b14d03dc2523d.tar.zst
nixlib-46a522698e6aaf144e18876b1d5b14d03dc2523d.zip
pythonPackages.twisted: Fix inotify on Linux.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/top-level/python-packages.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 4d9ebdca2e50..8df763844c0d 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -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