Commit 0a5d3535 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

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.
parent 07ffd4bf
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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
  ];