From 2af04a503f8c75cf30d60b1b3ce600db39a225f5 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 20 May 2023 22:50:43 +0200 Subject: [PATCH] python310Packages.json-stream-rs-tokenizer: fix darwin build --- .../python-modules/json-stream-rs-tokenizer/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/json-stream-rs-tokenizer/default.nix b/pkgs/development/python-modules/json-stream-rs-tokenizer/default.nix index 513bf89cfc0..299a526dfdd 100644 --- a/pkgs/development/python-modules/json-stream-rs-tokenizer/default.nix +++ b/pkgs/development/python-modules/json-stream-rs-tokenizer/default.nix @@ -1,8 +1,10 @@ { lib +, stdenv , buildPythonPackage , fetchFromGitHub , rustPlatform , cargo +, darwin , rustc , setuptools-rust , json-stream-rs-tokenizer @@ -38,6 +40,10 @@ buildPythonPackage rec { rustc ]; + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.libiconv + ]; + # Tests depend on json-stream, which depends on this package. # To avoid infinite recursion, we only enable tests when building passthru.tests. doCheck = false;