Skip to content

Commit

Permalink
python3Packages.libsixel: fix build on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium committed May 29, 2023
1 parent 6d93b77 commit 21a36d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/libsixel/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ buildPythonPackage
, lib
, stdenv
, libsixel
}:

Expand All @@ -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
Expand Down

0 comments on commit 21a36d6

Please sign in to comment.