Unverified Commit a8c190ad authored by Rafael Ieda's avatar Rafael Ieda
Browse files

knightos-z80e: fix build with cmake4

parent 7f7d45e2
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -29,6 +29,15 @@ stdenv.mkDerivation rec {

  cmakeFlags = [ "-Denable-sdl=YES" ];

  postPatch = ''
    substituteInPlace CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 2.8.5)" "cmake_minimum_required(VERSION 3.10)"
    substituteInPlace libz80e/CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 2.8)" "cmake_minimum_required(VERSION 3.10)"
    substituteInPlace frontends/libz80e/CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 2.8)" "cmake_minimum_required(VERSION 3.10)"
  '';

  meta = with lib; {
    homepage = "https://knightos.org/";
    description = "Z80 calculator emulator and debugger";