pythonPackages.tkinter: fix darwin build

This commit is contained in:
Josef Kemetmüller
2018-03-18 22:28:46 +01:00
parent a4752e1132
commit af0f9fa26b
9 changed files with 202 additions and 3 deletions
+2 -3
View File
@@ -16394,15 +16394,14 @@ in {
# Move the tkinter module
mkdir -p $out/${py.sitePackages}
mv lib/${py.libPrefix}/lib-dynload/_tkinter* $out/${py.sitePackages}/
'' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
# Update the rpath to point to python without x11Support
old_rpath=$(patchelf --print-rpath $out/${py.sitePackages}/_tkinter*)
new_rpath=$(sed "s#${py}#${python}#g" <<< "$old_rpath" )
patchelf --set-rpath $new_rpath $out/${py.sitePackages}/_tkinter*
'';
meta = py.meta // {
platforms = platforms.linux;
};
meta = py.meta;
};
tlslite = buildPythonPackage rec {