stderred: fix cmake-4 build

Without the change the build on cmake-4 fails as
https://hydra.nixos.org/build/309181148:

    CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
      Compatibility with CMake < 3.5 has been removed from CMake.
This commit is contained in:
Sergei Trofimovich
2025-10-18 14:19:02 +01:00
parent 07ffd4bf9f
commit 0a5d353595
+7
View File
@@ -16,6 +16,13 @@ stdenv.mkDerivation rec {
sha256 = "sha256-k/EA327AsRHgUYu7QqSF5yzOyO6h5XcE9Uv4l1VcIPI=";
};
postPatch = ''
# Inline https://github.com/ku1ik/stderred/pull/95
substituteInPlace CMakeLists.txt --replace-fail \
'cmake_minimum_required(VERSION 3.0)' \
'cmake_minimum_required(VERSION 3.10)'
'';
nativeBuildInputs = [
cmake
];