python3Packages.libsixel: fix build on darwin
This commit is contained in:
parent
6d93b77832
commit
21a36d6727
|
@ -1,5 +1,6 @@
|
||||||
{ buildPythonPackage
|
{ buildPythonPackage
|
||||||
, lib
|
, lib
|
||||||
|
, stdenv
|
||||||
, libsixel
|
, libsixel
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -13,7 +14,7 @@ buildPythonPackage rec {
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
substituteInPlace libsixel/__init__.py --replace \
|
substituteInPlace libsixel/__init__.py --replace \
|
||||||
'from ctypes.util import find_library' \
|
'from ctypes.util import find_library' \
|
||||||
'find_library = lambda _x: "${lib.getLib libsixel}/lib/libsixel.so"'
|
'find_library = lambda _x: "${lib.getLib libsixel}/lib/libsixel${stdenv.hostPlatform.extensions.sharedLibrary}"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# no tests
|
# no tests
|
||||||
|
|
Loading…
Reference in a new issue