From 2c3348d7f44875b7e06032651ea575806745d044 Mon Sep 17 00:00:00 2001 From: Andrew Zah Date: Sat, 18 Oct 2025 17:13:13 +0900 Subject: [PATCH] shark: fix build with cmake-4 * As noted in https://github.com/nixos/nixpkgs/issues/445447. --- pkgs/by-name/sh/shark/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/sh/shark/package.nix b/pkgs/by-name/sh/shark/package.nix index f5541bf01a8f..354cfb85b646 100644 --- a/pkgs/by-name/sh/shark/package.nix +++ b/pkgs/by-name/sh/shark/package.nix @@ -26,6 +26,9 @@ stdenv.mkDerivation (finalAttrs: { # Remove explicitly setting C++11, because boost::math headers need C++14 since Boost187. postPatch = '' sed -i '/CXX_STANDARD/d' src/CMakeLists.txt + + substituteInPlace CMakeLists.txt \ + --replace-fail 'cmake_minimum_required( VERSION 3.1 FATAL_ERROR)' 'cmake_minimum_required(VERSION 3.10)' ''; # https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/blob/develop/SuperBuild/CMake/External_shark.cmake?ref_type=heads