From ea20fa35750f53773004f6e97a388852789ea36d Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 1 Apr 2026 14:29:04 -0700 Subject: [PATCH] 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";