pythonPackages.pyenchant: fix on darwin
commit2ac2bd187eb9f76252f5dfea80c78549c64ed3b8
authorDan Peebles <pumpkin@me.com>
dateMon 6 Feb 2017, 15:42 (10 years ago)
parent6091bdf
pkgs/top-level/python-packages.nix+3
@@ -19967,6 +19967,9 @@ in {
1996719967 path_hack_script = "s|LoadLibrary(e_path)|LoadLibrary('${pkgs.enchant}/lib/' + e_path)|";
1996819968 in ''
1996919969 sed -i "${path_hack_script}" enchant/_enchant.py
19970+
19971+ # They hardcode a bad path for Darwin in their library search code
19972+ substituteInPlace enchant/_enchant.py --replace '/opt/local/lib/' ""
1997019973 '';
1997119974
1997219975 # dictionaries needed for tests