From 04a36b6fe21c1ee7fa9fc3b7c681976f979f0458 Mon Sep 17 00:00:00 2001 From: Daniel Fullmer Date: Fri, 17 Apr 2026 04:50:28 -0700 Subject: [PATCH] openems: fix build with boost 1.89 --- pkgs/by-name/op/openems/boost-1.89.patch | 12 ++++++++++++ pkgs/by-name/op/openems/package.nix | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 pkgs/by-name/op/openems/boost-1.89.patch diff --git a/pkgs/by-name/op/openems/boost-1.89.patch b/pkgs/by-name/op/openems/boost-1.89.patch new file mode 100644 index 000000000000..b9d5ffeaf231 --- /dev/null +++ b/pkgs/by-name/op/openems/boost-1.89.patch @@ -0,0 +1,12 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index caeac56..64c1e18 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -123,7 +123,6 @@ link_directories(${HDF5_LIBRARIES}) + # boost + find_package(Boost 1.46 COMPONENTS + thread +- system + date_time + serialization + chrono diff --git a/pkgs/by-name/op/openems/package.nix b/pkgs/by-name/op/openems/package.nix index d336bf62f538..76cbebac14b4 100644 --- a/pkgs/by-name/op/openems/package.nix +++ b/pkgs/by-name/op/openems/package.nix @@ -44,6 +44,8 @@ stdenv.mkDerivation (finalAttrs: { url = "https://github.com/thliebig/openEMS/commit/e02e2a8414355482145240e4c2b2464d7a26dd9e.patch"; hash = "sha256-y3pvim/8XUKF5k7shj0D+8P6tdfSZ3E/gxTogbRtxdo="; }) + # boost 1.89 removed the boost_system stub library + ./boost-1.89.patch ]; nativeBuildInputs = [