From 9f9b8a0733464fadecbe81afd23cf008f1490aa9 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Tue, 11 Jul 2023 18:01:24 +0200 Subject: boost: fix for python 3.11 ref. https://github.com/boostorg/python/commit/a218babc8daee904a83f550fb66e5cb3f1cb3013 Co-authored-by: Theodore Ni <3806110+tjni@users.noreply.github.com> --- pkgs/development/libraries/boost/generic.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pkgs/development/libraries/boost') diff --git a/pkgs/development/libraries/boost/generic.nix b/pkgs/development/libraries/boost/generic.nix index cad0f3aaed6..5de26ef5ce2 100644 --- a/pkgs/development/libraries/boost/generic.nix +++ b/pkgs/development/libraries/boost/generic.nix @@ -134,6 +134,14 @@ stdenv.mkDerivation { relative = "include"; hash = "sha256-dq4SVgxkPJSC7Fvr59VGnXkM4Lb09kYDaBksCHo9C0s="; }) + # This fixes an issue in Python 3.11 about Py_TPFLAGS_HAVE_GC + (fetchpatch { + name = "python311-compatibility.patch"; + url = "https://github.com/boostorg/python/commit/a218babc8daee904a83f550fb66e5cb3f1cb3013.patch"; + hash = "sha256-IHxLtJBx0xSy7QEr8FbCPofsjcPuSYzgtPwDlx1JM+4="; + stripLen = 1; + extraPrefix = "libs/python/"; + }) ]; meta = with lib; { -- cgit 1.4.1