Unverified Commit 21a36d67 authored by natsukium's avatar natsukium
Browse files

python3Packages.libsixel: fix build on darwin

parent 6d93b778
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
{ 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