From 7dfdc3526086ba39711d70fde261c5794c7ee807 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Sun, 5 Jan 2025 11:19:38 -0500 Subject: [PATCH] python3Packages.correctionlib: patch vendored rapidjson --- .../python-modules/correctionlib/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/python-modules/correctionlib/default.nix b/pkgs/development/python-modules/correctionlib/default.nix index 6c39407ae3c27..0d40e8e3ab518 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