From 0e4cc17a363a4419cf9066c86af7cb7de916d2e2 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Sun, 19 Oct 2025 07:54:51 +0200 Subject: [PATCH] nihstro: fix build with cmake4 --- pkgs/by-name/ni/nihstro/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/ni/nihstro/package.nix b/pkgs/by-name/ni/nihstro/package.nix index d6e962f799e8..c398f0179089 100644 --- a/pkgs/by-name/ni/nihstro/package.nix +++ b/pkgs/by-name/ni/nihstro/package.nix @@ -19,6 +19,14 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-ZHgWyZFW7t2VTibH7WeuU8+I12bb95I9NcHI5s4U3VU="; }; + postPatch = '' + # CMake 2.6 is deprecated and is no longer supported by CMake > 4 + # inline of https://github.com/neobrain/nihstro/pull/71 + substituteInPlace CMakeLists.txt \ + --replace-fail "cmake_minimum_required(VERSION 2.6)" \ + "cmake_minimum_required(VERSION 3.5)" + ''; + strictDeps = true; nativeBuildInputs = [