summary refs log tree commit diff
path: root/pkgs/development/libraries/boost
diff options
context:
space:
mode:
authorGuilhem Saurel <guilhem.saurel@laas.fr>2023-07-11 18:01:24 +0200
committerGuilhem Saurel <guilhem.saurel@laas.fr>2023-07-14 09:43:16 +0200
commit9f9b8a0733464fadecbe81afd23cf008f1490aa9 (patch)
tree51cbcf781a35909a85f72c5e25c9f7e5af97c572 /pkgs/development/libraries/boost
parente50f88333372631f415a0dd37f4395ebb664a020 (diff)
downloadnixpkgs-9f9b8a0733464fadecbe81afd23cf008f1490aa9.tar
nixpkgs-9f9b8a0733464fadecbe81afd23cf008f1490aa9.tar.gz
nixpkgs-9f9b8a0733464fadecbe81afd23cf008f1490aa9.tar.bz2
nixpkgs-9f9b8a0733464fadecbe81afd23cf008f1490aa9.tar.lz
nixpkgs-9f9b8a0733464fadecbe81afd23cf008f1490aa9.tar.xz
nixpkgs-9f9b8a0733464fadecbe81afd23cf008f1490aa9.tar.zst
nixpkgs-9f9b8a0733464fadecbe81afd23cf008f1490aa9.zip
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>
Diffstat (limited to 'pkgs/development/libraries/boost')
-rw-r--r--pkgs/development/libraries/boost/generic.nix8
1 files changed, 8 insertions, 0 deletions
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; {