Unverified Commit 72bf2817 authored by Bobby Rong's avatar Bobby Rong
Browse files

awesome: Fix build with CMake 4

parent 4ec104a4
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -72,6 +72,14 @@ stdenv.mkDerivation rec {
    })
  ];

  # Fix build with CMake 4
  # https://github.com/awesomeWM/awesome/pull/4030#issuecomment-3370822668
  postPatch = ''
    substituteInPlace {,tests/examples/}CMakeLists.txt \
      --replace-fail 'cmake_minimum_required(VERSION 3.0.0)' 'cmake_minimum_required(VERSION 3.10)' \
      --replace-warn 'cmake_policy(VERSION 2.6)' 'cmake_policy(VERSION 3.10)'
  '';

  nativeBuildInputs = [
    cmake
    doxygen