From 9f93116aa0684a19a83bc971841893dc87c98bd7 Mon Sep 17 00:00:00 2001 From: rewine Date: Thu, 23 Jan 2025 13:14:46 +0800 Subject: [PATCH] boost: fix operator<< for shared_ptr and intrusive_ptr --- pkgs/development/libraries/boost/generic.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/libraries/boost/generic.nix b/pkgs/development/libraries/boost/generic.nix index 593c8b8deddf..64194a509446 100644 --- a/pkgs/development/libraries/boost/generic.nix +++ b/pkgs/development/libraries/boost/generic.nix @@ -222,6 +222,15 @@ stdenv.mkDerivation { extraPrefix = "libs/python/"; hash = "sha256-0IHK55JSujYcwEVOuLkwOa/iPEkdAKQlwVWR42p/X2U="; }) + ] + ++ lib.optional (lib.versionAtLeast version "1.87") [ + # Fix operator<< for shared_ptr and intrusive_ptr + # https://github.com/boostorg/smart_ptr/issues/115 + (fetchpatch { + url = "https://github.com/boostorg/smart_ptr/commit/e7433ba54596da97cb7859455cd37ca140305a9c.patch"; + relative = "include"; + hash = "sha256-9JvKQOAB19wQpWLNAhuB9eL8qKqXWTQHAJIXdLYMNG8="; + }) ]; meta = with lib; {