python3Packages.libsixel: fix build on darwin

This commit is contained in:
natsukium 2023-05-29 14:17:01 +09:00
parent 6d93b77832
commit 21a36d6727
No known key found for this signature in database
GPG key ID: 9EA45A31DB994C53

View file

@ -1,5 +1,6 @@
{ buildPythonPackage
, lib
, stdenv
, libsixel
}:
@ -13,7 +14,7 @@ buildPythonPackage rec {
prePatch = ''
substituteInPlace libsixel/__init__.py --replace \
'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