git.iko.soy/typeable/nixpkgs
on master help sign in
superTuxKart: Fix aarch64-linux build
commitb690ceff5dd2ce5b34d37209f883e575e77b7ec8 authorOPNA2608 <christoph.neidahl@gmail.com> dateFri 7 May 2021, 21:04 (6 years ago) parent97de159
1 file changed+10−5
pkgs/games/super-tux-kart/default.nix+10−5
pkgs/games/super-tux-kart/default.nix+10−5
@@ -54,7 +54,12 @@ let
5454 "libsquish"
5555 # Not packaged to this date
5656 "sheenbidi"
57− ];
57+ ]
58+ # Our system angelscript causes linking error on ARM
59+ # ld: libangelscript.so: undefined reference to
60+ # `CallSystemFunctionNative(asCContext*, asCScriptFunction*, void*, unsigned int*, void*, unsigned long&, void*)'
61+ # Bundled angelscript compiles fine
62+ ++ lib.optional stdenv.hostPlatform.isAarch64 "angelscript";
5863in
5964stdenv.mkDerivation rec {
6065
@@ -100,15 +105,15 @@ stdenv.mkDerivation rec {
100105 harfbuzz
101106 mcpp
102107 wiiuse
103− angelscript
104− ];
108+ ]
109+ ++ lib.optional (!stdenv.hostPlatform.isAarch64) angelscript;
105110
106111 cmakeFlags = [
107112 "-DBUILD_RECORDER=OFF" # libopenglrecorder is not in nixpkgs
108− "-DUSE_SYSTEM_ANGELSCRIPT=OFF" # doesn't work with 2.31.2 or 2.32.0
113+ # doesn't work with our 2.35.0 on aarch64-linux
114+ "-DUSE_SYSTEM_ANGELSCRIPT=${if !stdenv.hostPlatform.isAarch64 then "ON" else "OFF"}"
109115 "-DCHECK_ASSETS=OFF"
110116 "-DUSE_SYSTEM_WIIUSE=ON"
111− "-DUSE_SYSTEM_ANGELSCRIPT=ON"
112117 "-DOpenGL_GL_PREFERENCE=GLVND"
113118 ];
114119