diff --git a/pkgs/development/python-modules/correctionlib/default.nix b/pkgs/development/python-modules/correctionlib/default.nix index 6c39407ae3c275..0d40e8e3ab5180 100644 --- a/pkgs/development/python-modules/correctionlib/default.nix +++ b/pkgs/development/python-modules/correctionlib/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, # build-system cmake, @@ -37,6 +38,16 @@ buildPythonPackage rec { fetchSubmodules = true; }; + patches = [ + # fix https://github.com/Tencent/rapidjson/issues/2277 + (fetchpatch { + url = "https://github.com/Tencent/rapidjson/pull/719.diff"; + hash = "sha256-xarSfi9o73KoJo0ijT0G8fyTSYVuY0+9rLEtfUwas0Q="; + extraPrefix = "rapidjson/"; + stripLen = 1; + }) + ]; + build-system = [ cmake scikit-build