Unverified Commit 759194ee authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

opendungeons: fix build with cmake4 (#455242)

parents 8d49a781 b2503469
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -46,8 +46,13 @@ stdenv.mkDerivation {
  ];

  # source/utils/StackTraceUnix.cpp:122:2: error: #error Unsupported architecture.
  postPatch = lib.optionalString (!stdenv.hostPlatform.isx86_64) ''
  postPatch =
    lib.optionalString (!stdenv.hostPlatform.isx86_64) ''
      cp source/utils/StackTrace{Stub,Unix}.cpp
    ''
    + ''
      substituteInPlace CMakeLists.txt \
        --replace-fail "cmake_minimum_required(VERSION 2.8)" "cmake_minimum_required(VERSION 3.10)"
    '';

  strictDeps = true;