nihstro: fix build with cmake4 (#453439)

This commit is contained in:
Seth Flynn
2025-10-20 07:05:45 +00:00
committed by GitHub
+8
View File
@@ -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 = [