mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
Merge pull request #234739 from natsukium/python3Packages.libsixel/fix-darwin
python3Packages.libsixel: fix build on darwin
This commit is contained in:
commit
64619daa54
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user