Merge pull request #10836 from makefu/python_magic_replace_find_library

pythonPackages.python_magic: fix hardcode find_library("magic")
This commit is contained in:
Domen Kožar 2015-11-05 16:36:16 +01:00
commit 9794ed4cdf

View File

@ -8663,7 +8663,7 @@ let
propagatedBuildInputs = with self; [ pkgs.file ];
patchPhase = ''
substituteInPlace magic.py --replace "ctypes.CDLL(dll)" "ctypes.CDLL('${pkgs.file}/lib/libmagic.so')"
substituteInPlace magic.py --replace "ctypes.util.find_library('magic')" "'${pkgs.file}/lib/libmagic.so'"
'';
doCheck = false;