about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2021-12-16 22:36:41 -0500
committerGitHub <noreply@github.com>2021-12-16 22:36:41 -0500
commit5e3d3054f736cbe7b70adcafb32818ac2573d454 (patch)
tree21663897323e1975f3b7cd50e671a9531c218a5f /pkgs
parent7b720837e7461bc7dad72d3ed8285c6aa6f6a3b7 (diff)
parentbf98858c0fffa8b2a714faa28077d73947cacc9f (diff)
Merge pull request #147807 from veprbl/pr/tokenizers_darwin_fix
pythonPackages.tokenizers: fix darwin build
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/tokenizers/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/tokenizers/default.nix b/pkgs/development/python-modules/tokenizers/default.nix
index d5d26050eeebe..55928d4fcc8e3 100644
--- a/pkgs/development/python-modules/tokenizers/default.nix
+++ b/pkgs/development/python-modules/tokenizers/default.nix
@@ -1,9 +1,11 @@
 { lib
+, stdenv
 , fetchFromGitHub
 , fetchurl
 , buildPythonPackage
 , rustPlatform
 , setuptools-rust
+, libiconv
 , numpy
 , datasets
 , pytestCheckHook
@@ -72,6 +74,10 @@ in buildPythonPackage rec {
     rust.rustc
   ]);
 
+  buildInputs = lib.optionals stdenv.isDarwin [
+    libiconv
+  ];
+
   propagatedBuildInputs = [
     numpy
   ];