python: support the tkinter.tix module

This commit is contained in:
Symphorien Gibol
2017-01-01 19:37:02 +01:00
parent 3f499d3fb9
commit a6e3d71361
6 changed files with 27 additions and 6 deletions

View File

@@ -6,7 +6,7 @@
, openssl
, readline
, sqlite
, tcl ? null, tk ? null, xlibsWrapper ? null, libX11 ? null, x11Support ? false
, tcl ? null, tk ? null, tix ? null, xlibsWrapper ? null, libX11 ? null, x11Support ? false
, zlib
, callPackage
, self
@@ -150,6 +150,10 @@ in stdenv.mkDerivation {
setupHook = ./setup-hook.sh;
postPatch = optionalString (x11Support && (tix != null)) ''
substituteInPlace "Lib/lib-tk/Tix.py" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
'';
postInstall =
''
# needed for some packages, especially packages that backport