From 21a36d6727c6a5f2921e8265252edc5c20d472f3 Mon Sep 17 00:00:00 2001 From: natsukium Date: Mon, 29 May 2023 14:17:01 +0900 Subject: [PATCH] python3Packages.libsixel: fix build on darwin --- pkgs/development/python-modules/libsixel/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/libsixel/default.nix b/pkgs/development/python-modules/libsixel/default.nix index 7760bb867479..c061b51ab849 100644 --- a/pkgs/development/python-modules/libsixel/default.nix +++ b/pkgs/development/python-modules/libsixel/default.nix @@ -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