Merge pull request #10836 from makefu/python_magic_replace_find_library
pythonPackages.python_magic: fix hardcode find_library("magic")
This commit is contained in:
commit
9794ed4cdf
@ -8663,7 +8663,7 @@ let
|
|||||||
propagatedBuildInputs = with self; [ pkgs.file ];
|
propagatedBuildInputs = with self; [ pkgs.file ];
|
||||||
|
|
||||||
patchPhase = ''
|
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;
|
doCheck = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user