Unverified Commit 18fbd0d1 authored by Rafael Ieda's avatar Rafael Ieda
Browse files

megaglest: fix build with cmake4

parent b5d4fb5c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -144,6 +144,11 @@ stdenv.mkDerivation {
    "-DBUILD_MEGAGLEST_MODEL_VIEWER=On"
  ];

  postPatch = ''
    substituteInPlace {data/glest_game,.}/CMakeLists.txt \
      --replace-fail "CMAKE_MINIMUM_REQUIRED( VERSION 2.8.2 )" "cmake_minimum_required(VERSION 3.10)"
  '';

  postInstall = ''
    for i in $out/bin/*; do
      wrapProgram $i \