diff --git a/pkgs/by-name/op/opendungeons/package.nix b/pkgs/by-name/op/opendungeons/package.nix index 8af16ad1da9e..ccb6529ebe51 100644 --- a/pkgs/by-name/op/opendungeons/package.nix +++ b/pkgs/by-name/op/opendungeons/package.nix @@ -46,9 +46,14 @@ stdenv.mkDerivation { ]; # source/utils/StackTraceUnix.cpp:122:2: error: #error Unsupported architecture. - postPatch = lib.optionalString (!stdenv.hostPlatform.isx86_64) '' - cp source/utils/StackTrace{Stub,Unix}.cpp - ''; + 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;