From fb086d80e064e71e5230ff0ed849b792364d36e2 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 1 Apr 2026 14:26:55 -0700 Subject: [PATCH 01/11] coloquinte: fix build with boost 1.89 Boost 1.89 removed the boost_system stub library. Remove the `system` component from the find_package call. --- pkgs/by-name/co/coloquinte/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/co/coloquinte/package.nix b/pkgs/by-name/co/coloquinte/package.nix index a4fa5e081480..d1bd2d02b9f3 100644 --- a/pkgs/by-name/co/coloquinte/package.nix +++ b/pkgs/by-name/co/coloquinte/package.nix @@ -19,6 +19,13 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-BQg2rVYe1wJOX7YnvgDVpmN6hwBJZKH0fxm+8HC8bvY="; }; + # boost 1.89 removed the boost_system stub library + postPatch = '' + substituteInPlace CMakeLists.txt --replace-fail \ + 'FIND_PACKAGE(Boost REQUIRED COMPONENTS system filesystem iostreams program_options unit_test_framework)' \ + 'FIND_PACKAGE(Boost REQUIRED COMPONENTS filesystem iostreams program_options unit_test_framework)' + ''; + nativeBuildInputs = [ cmake ]; From ea20fa35750f53773004f6e97a388852789ea36d Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 1 Apr 2026 14:29:04 -0700 Subject: [PATCH 02/11] leatherman: fix build with boost 1.89 Boost 1.89 removed the boost_system stub library. Remove the `system` component from all find_package calls. --- pkgs/by-name/le/leatherman/package.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/by-name/le/leatherman/package.nix b/pkgs/by-name/le/leatherman/package.nix index 00498584b6ad..c0e55cb81ee4 100644 --- a/pkgs/by-name/le/leatherman/package.nix +++ b/pkgs/by-name/le/leatherman/package.nix @@ -27,6 +27,20 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace CMakeLists.txt --replace-fail \ "cmake_minimum_required(VERSION 3.2.2)" \ "cmake_minimum_required(VERSION 3.10)" + + # boost 1.89 removed the boost_system stub library + substituteInPlace \ + curl/CMakeLists.txt \ + dynamic_library/CMakeLists.txt \ + execution/CMakeLists.txt \ + file_util/CMakeLists.txt \ + locale/CMakeLists.txt \ + logging/CMakeLists.txt \ + ruby/CMakeLists.txt \ + util/CMakeLists.txt \ + windows/CMakeLists.txt \ + --replace-fail ' system' "" + substituteInPlace tests/CMakeLists.txt --replace-fail 'system ' "" ''; env.NIX_CFLAGS_COMPILE = "-Wno-error"; From e619c07e8407c51ec245caee5ae34bfa562b2d5e Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 1 Apr 2026 14:29:11 -0700 Subject: [PATCH 03/11] cpp-hocon: fix build with boost 1.89 Boost 1.89 removed the boost_system stub library. Remove the `system` component from the BOOST_COMPONENTS list. --- pkgs/by-name/cp/cpp-hocon/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/cp/cpp-hocon/package.nix b/pkgs/by-name/cp/cpp-hocon/package.nix index 1cc2417bf594..84af9dee0eab 100644 --- a/pkgs/by-name/cp/cpp-hocon/package.nix +++ b/pkgs/by-name/cp/cpp-hocon/package.nix @@ -27,6 +27,11 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace CMakeLists.txt --replace-fail \ "cmake_minimum_required(VERSION 3.2.2)" \ "cmake_minimum_required(VERSION 3.10)" + + # boost 1.89 removed the boost_system stub library + substituteInPlace CMakeLists.txt --replace-fail \ + 'list(APPEND BOOST_COMPONENTS thread date_time chrono filesystem system program_options)' \ + 'list(APPEND BOOST_COMPONENTS thread date_time chrono filesystem program_options)' ''; env.NIX_CFLAGS_COMPILE = "-Wno-error"; From 4d201bddfd5a5cba568d16c063e43a392bf05e03 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 1 Apr 2026 14:29:16 -0700 Subject: [PATCH 04/11] libwhereami: fix build with boost 1.89 Boost 1.89 removed the boost_system stub library. Remove the `system` component from the BOOST_COMPONENTS list. --- pkgs/by-name/li/libwhereami/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/li/libwhereami/package.nix b/pkgs/by-name/li/libwhereami/package.nix index 995736bcfa41..e77179f3066d 100644 --- a/pkgs/by-name/li/libwhereami/package.nix +++ b/pkgs/by-name/li/libwhereami/package.nix @@ -25,6 +25,11 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace CMakeLists.txt --replace-fail \ "cmake_minimum_required(VERSION 3.2.2)" \ "cmake_minimum_required(VERSION 3.10)" + + # boost 1.89 removed the boost_system stub library + substituteInPlace CMakeLists.txt --replace-fail \ + 'list(APPEND BOOST_COMPONENTS filesystem regex system thread)' \ + 'list(APPEND BOOST_COMPONENTS filesystem regex thread)' ''; env.NIX_CFLAGS_COMPILE = "-Wno-error"; From 0b3c014369a39ede3ac27a21f7906f4fb4d1132b Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 1 Apr 2026 14:29:23 -0700 Subject: [PATCH 05/11] grip-search: fix build with boost 1.89 Boost 1.89 removed the boost_system stub library. Remove the `system` component from all find_package calls. --- pkgs/by-name/gr/grip-search/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/gr/grip-search/package.nix b/pkgs/by-name/gr/grip-search/package.nix index feae85beb34c..eded3219e89e 100644 --- a/pkgs/by-name/gr/grip-search/package.nix +++ b/pkgs/by-name/gr/grip-search/package.nix @@ -44,6 +44,14 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace CMakeLists.txt \ --replace-fail "cmake_minimum_required (VERSION 3.1)" "cmake_minimum_required(VERSION 3.10)" + + # boost 1.89 removed the boost_system stub library + substituteInPlace \ + src/general/CMakeLists.txt \ + src/test/CMakeLists.txt \ + src/gripgen/CMakeLists.txt \ + src/grip/CMakeLists.txt \ + --replace-fail ' system' "" ''; meta = { From f88a24a0b8d59434e6fb044ceec44cb0ab782881 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 1 Apr 2026 14:29:27 -0700 Subject: [PATCH 06/11] grive2: fix build with boost 1.89 Boost 1.89 removed the boost_system stub library. Remove the `system` component from the find_package call. --- pkgs/by-name/gr/grive2/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/gr/grive2/package.nix b/pkgs/by-name/gr/grive2/package.nix index 8c2c7260d9e1..a229eae30de3 100644 --- a/pkgs/by-name/gr/grive2/package.nix +++ b/pkgs/by-name/gr/grive2/package.nix @@ -37,6 +37,11 @@ stdenv.mkDerivation (finalAttrs: { postPatch = '' substituteInPlace CMakeLists.txt \ --replace-fail 'cmake_minimum_required(VERSION 2.8)' 'cmake_minimum_required(VERSION 3.10)' + + # boost 1.89 removed the boost_system stub library + substituteInPlace libgrive/CMakeLists.txt --replace-fail \ + 'find_package(Boost 1.40.0 COMPONENTS program_options filesystem unit_test_framework regex system REQUIRED)' \ + 'find_package(Boost 1.40.0 COMPONENTS program_options filesystem unit_test_framework regex REQUIRED)' ''; nativeBuildInputs = [ From b30abcfc549612d079fb482cfb6cb2f2a58e94fe Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 1 Apr 2026 14:29:30 -0700 Subject: [PATCH 07/11] fileshelter: fix build with boost 1.89 Boost 1.89 removed the boost_system stub library. Remove the `system` component from the find_package call. --- pkgs/by-name/fi/fileshelter/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/fi/fileshelter/package.nix b/pkgs/by-name/fi/fileshelter/package.nix index f14f43ec3f30..b56c99aaa2dd 100644 --- a/pkgs/by-name/fi/fileshelter/package.nix +++ b/pkgs/by-name/fi/fileshelter/package.nix @@ -24,6 +24,11 @@ stdenv.mkDerivation (finalAttrs: { postPatch = '' sed -i '1i #include ' src/fileshelter/ui/ShareCreateFormView.cpp + + # boost 1.89 removed the boost_system stub library + substituteInPlace CMakeLists.txt --replace-fail \ + 'find_package(Boost REQUIRED COMPONENTS system program_options)' \ + 'find_package(Boost REQUIRED COMPONENTS program_options)' ''; enableParallelBuilding = true; From 68960a6561499a24b51e01a31f0490c928c04c9d Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 1 Apr 2026 14:29:42 -0700 Subject: [PATCH 08/11] sfcgal: fix build with boost 1.89 Boost 1.89 removed the boost_system stub library. Remove the `system` component from the SFCGAL_Boost_COMPONENTS list. --- pkgs/by-name/sf/sfcgal/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/sf/sfcgal/package.nix b/pkgs/by-name/sf/sfcgal/package.nix index c9a2fc9c0321..4445a09f1765 100644 --- a/pkgs/by-name/sf/sfcgal/package.nix +++ b/pkgs/by-name/sf/sfcgal/package.nix @@ -20,6 +20,13 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-9caucSIEAjzc4cWShuwbBC+BLs5a3e3y58aT4aLzN5E="; }; + # boost 1.89 removed the boost_system stub library + postPatch = '' + substituteInPlace CMakeLists.txt --replace-fail \ + 'set( SFCGAL_Boost_COMPONENTS thread system serialization )' \ + 'set( SFCGAL_Boost_COMPONENTS thread serialization )' + ''; + buildInputs = [ cgal boost From 056b3646296e50241f71331022e08a26d98214ed Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 1 Apr 2026 14:29:53 -0700 Subject: [PATCH 09/11] openrw: fix build with boost 1.89 Boost 1.89 removed the boost_system stub library. Remove the `system` component from the find_package call. Also fix lib.optional to lib.optionalString for postPatch string concatenation. --- pkgs/by-name/op/openrw/package.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/op/openrw/package.nix b/pkgs/by-name/op/openrw/package.nix index 70ad5386fb75..8efbb13b15ab 100644 --- a/pkgs/by-name/op/openrw/package.nix +++ b/pkgs/by-name/op/openrw/package.nix @@ -34,10 +34,17 @@ stdenv.mkDerivation { hash = "sha256-2fQQL0JoV8YukU+VW2iWS4DpBi1j361SfiXRHRmocRg="; }; - postPatch = lib.optional (stdenv.cc.isClang && (lib.versionAtLeast stdenv.cc.version "9")) '' - substituteInPlace cmake_configure.cmake \ - --replace-fail 'target_link_libraries(rw_interface INTERFACE "stdc++fs")' "" - ''; + postPatch = + lib.optionalString (stdenv.cc.isClang && (lib.versionAtLeast stdenv.cc.version "9")) '' + substituteInPlace cmake_configure.cmake \ + --replace-fail 'target_link_libraries(rw_interface INTERFACE "stdc++fs")' "" + '' + + '' + # boost 1.89 removed the boost_system stub library + substituteInPlace CMakeLists.txt --replace-fail \ + 'find_package(Boost COMPONENTS program_options system REQUIRED)' \ + 'find_package(Boost COMPONENTS program_options REQUIRED)' + ''; nativeBuildInputs = [ cmake From fd05cc6897979abee33c0d52c025bab38f2ca9bf Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 1 Apr 2026 14:33:24 -0700 Subject: [PATCH 10/11] srsran: fix build with boost 1.89 Boost 1.89 removed the boost_system stub library. Remove boost_system references from FindUHD.cmake, the hardcoded .so path, and the BOOST_REQUIRED_COMPONENTS list. --- pkgs/by-name/sr/srsran/package.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/by-name/sr/srsran/package.nix b/pkgs/by-name/sr/srsran/package.nix index 96e805a122a2..a49abe56173f 100644 --- a/pkgs/by-name/sr/srsran/package.nix +++ b/pkgs/by-name/sr/srsran/package.nix @@ -55,6 +55,17 @@ stdenv.mkDerivation (finalAttrs: { zeromq ]; + # boost 1.89 removed the boost_system stub library + postPatch = '' + substituteInPlace cmake/modules/FindUHD.cmake --replace-fail \ + 'set(CMAKE_REQUIRED_LIBRARIES uhd boost_program_options boost_system)' \ + 'set(CMAKE_REQUIRED_LIBRARIES uhd boost_program_options)' + substituteInPlace lib/src/phy/rf/CMakeLists.txt --replace-fail \ + '/usr/lib/x86_64-linux-gnu/libboost_system.so' "" + substituteInPlace CMakeLists.txt --replace-fail \ + 'list(APPEND BOOST_REQUIRED_COMPONENTS "system")' "" + ''; + cmakeFlags = [ "-DENABLE_WERROR=OFF" (lib.cmakeBool "ENABLE_LTE_RATES" enableLteRates) From b7dd6ebb793756b95d41e3c44f51d7d1c2c06fab Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 1 Apr 2026 15:13:31 -0700 Subject: [PATCH 11/11] localproxy: fix build with boost 1.89 Boost 1.89 removed the boost_system stub library. Remove the `system` component from the find_package call. --- pkgs/by-name/lo/localproxy/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/lo/localproxy/package.nix b/pkgs/by-name/lo/localproxy/package.nix index 89c8e45be70a..bcc43899c26c 100644 --- a/pkgs/by-name/lo/localproxy/package.nix +++ b/pkgs/by-name/lo/localproxy/package.nix @@ -54,6 +54,9 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace ./CMakeLists.txt --replace-fail \ "cmake_minimum_required(VERSION 3.2 FATAL_ERROR)" \ "cmake_minimum_required(VERSION 4.0)" + + # boost 1.89 removed the boost_system stub library + substituteInPlace CMakeLists.txt --replace-fail ' system' "" ''; # causes redefinition of _FORTIFY_SOURCE