From 1c699b8921e759f147668ad10be3e436ab9e4032 Mon Sep 17 00:00:00 2001 From: Tobias Mayer Date: Thu, 6 Feb 2025 09:57:05 +0100 Subject: [PATCH] shark: fix build with boost187 --- pkgs/by-name/sh/shark/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/sh/shark/package.nix b/pkgs/by-name/sh/shark/package.nix index 1bd6a9ab94c3..4219153a78ab 100644 --- a/pkgs/by-name/sh/shark/package.nix +++ b/pkgs/by-name/sh/shark/package.nix @@ -23,6 +23,11 @@ stdenv.mkDerivation (finalAttrs: { # c.f https://github.com/Shark-ML/Shark/commit/221c1f2e8abfffadbf3c5ef7cf324bc6dc9b4315 patches = [ ./shark-2-ext-num-literals-all.diff ]; + # Remove explicitly setting C++11, because boost::math headers need C++14 since Boost187. + postPatch = '' + sed -i '/CXX_STANDARD/d' src/CMakeLists.txt + ''; + # https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/blob/develop/SuperBuild/CMake/External_shark.cmake?ref_type=heads cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON"