From eb953e23722cf5a10d87e9a1b7aaf409488689d7 Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Sat, 21 Feb 2026 01:42:42 +0100 Subject: [PATCH] python3Packages.coal: fix build with boost 1.89 Finding `boost_system` fails because the stub compiled library of Boost.System, which has been a header-only library since 1.69, was removed in 1.89 [1]. [1] https://www.boost.org/releases/1.89.0/ --- pkgs/development/python-modules/coal/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/python-modules/coal/default.nix b/pkgs/development/python-modules/coal/default.nix index 28a7e1642d4f..30bd354bbdcc 100644 --- a/pkgs/development/python-modules/coal/default.nix +++ b/pkgs/development/python-modules/coal/default.nix @@ -17,6 +17,17 @@ toPythonModule ( coal.overrideAttrs (super: { pname = "py-${super.pname}"; + # Finding `boost_system` fails because the stub compiled library of + # Boost.System, which has been a header-only library since 1.69, was + # removed in 1.89. + # See https://www.boost.org/releases/1.89.0/ for details. + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail \ + "find_package(Boost REQUIRED COMPONENTS system)" \ + "find_package(Boost REQUIRED OPTIONAL_COMPONENTS system)" + ''; + cmakeFlags = super.cmakeFlags ++ [ (lib.cmakeBool "BUILD_PYTHON_INTERFACE" true) (lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" buildStandalone)