blitz: fix build failure with cmake 4

- CMake 4 is no longer retro compatible with versions < 3.5
  cmake_minimum_required was already to an upper version, but not cmake_policy
This commit is contained in:
Clément
2025-10-16 12:04:16 -07:00
parent 71bc8fd56a
commit 84ad49bfa2
+8
View File
@@ -44,6 +44,14 @@ stdenv.mkDerivation rec {
})
];
# CMake 4 is no longer retro compatible with versions < 3.5
# cmake_minimum_required was already to an upper version, but not cmake_policy
postPatch = ''
substituteInPlace CMakeLists.txt --replace-fail \
"cmake_policy(VERSION 3.1)" \
""
'';
nativeBuildInputs = [
cmake
pkg-config