Merge pull request #310555 from annaleeleaves/kornia-darwin-fix

python311Packages.kornia-rs: unbreak darwin with libiconv
This commit is contained in:
Weijia Wang 2024-05-10 14:31:10 +02:00 committed by GitHub
commit 90e835951a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,10 +1,12 @@
{ lib { lib
, stdenv
, fetchFromGitHub , fetchFromGitHub
, buildPythonPackage , buildPythonPackage
, rustPlatform , rustPlatform
, cmake , cmake
, nasm , nasm
, substituteAll , substituteAll
, libiconv
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -26,6 +28,8 @@ buildPythonPackage rec {
nasm # Only for dependencies. nasm # Only for dependencies.
]; ];
buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
cargoRoot = "py-kornia"; cargoRoot = "py-kornia";
cargoDeps = rustPlatform.importCargoLock { cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock; lockFile = ./Cargo.lock;