diff --git a/pkgs/development/python-modules/pytorch-tokenizers/add-missing-cstdint-sentencepiece.patch b/pkgs/development/python-modules/pytorch-tokenizers/add-missing-cstdint-sentencepiece.patch new file mode 100644 index 000000000000..95556a83da45 --- /dev/null +++ b/pkgs/development/python-modules/pytorch-tokenizers/add-missing-cstdint-sentencepiece.patch @@ -0,0 +1,13 @@ +Submodule third-party/sentencepiece contains modified content +diff --git a/third-party/sentencepiece/src/sentencepiece_processor.h b/third-party/sentencepiece/src/sentencepiece_processor.h +index dd3f092..553fbff 100644 +--- a/third-party/sentencepiece/src/sentencepiece_processor.h ++++ b/third-party/sentencepiece/src/sentencepiece_processor.h +@@ -16,6 +16,7 @@ + #define SENTENCEPIECE_PROCESSOR_H_ + + #include ++#include + #include + #include + #include diff --git a/pkgs/development/python-modules/pytorch-tokenizers/default.nix b/pkgs/development/python-modules/pytorch-tokenizers/default.nix index e87b613b887a..10f2835577f5 100644 --- a/pkgs/development/python-modules/pytorch-tokenizers/default.nix +++ b/pkgs/development/python-modules/pytorch-tokenizers/default.nix @@ -45,6 +45,8 @@ buildPythonPackage rec { (replaceVars ./dont-fetch-pybind11.patch { pybind11 = pybind11-src; }) + # error: ‘uint32_t’ does not name a type + ./add-missing-cstdint-sentencepiece.patch ]; postPatch = ''