about summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2022-12-05 14:36:17 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2022-12-05 15:11:56 +0100
commit904280a5147e114a0cd17c7a9f8711f99b30330f (patch)
tree29c152405a081b568f2495f4c4045d54584f52f5 /pkgs/games
parentac9af8d268060f355c4c4ab3df44ac14dd65b244 (diff)
opendungeons: fix build on aarch64-linux
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/opendungeons/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/games/opendungeons/default.nix b/pkgs/games/opendungeons/default.nix
index 9afcbd898785e..61f8aad304c8b 100644
--- a/pkgs/games/opendungeons/default.nix
+++ b/pkgs/games/opendungeons/default.nix
@@ -16,6 +16,11 @@ stdenv.mkDerivation rec {
     ./fix_link_date_time.patch
   ];
 
+  # source/utils/StackTraceUnix.cpp:122:2: error: #error Unsupported architecture.
+  postPatch = lib.optionalString (!stdenv.isx86_64) ''
+    cp source/utils/StackTrace{Stub,Unix}.cpp
+  '';
+
   nativeBuildInputs = [ cmake pkg-config ];
   buildInputs = [ ogre cegui boost sfml openal ois ];