pythonPackages.python_magic: fix hardcode find_library("magic")

This commit is contained in:
makefu 2015-11-05 15:49:59 +01:00
parent 13a379cfa2
commit 58585de213

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;