Merge branch 'staging-next' into staging
This commit is contained in:
@@ -67,6 +67,6 @@ stdenv.mkDerivation rec {
|
||||
homepage = "https://assault.cubers.net";
|
||||
maintainers = [ ];
|
||||
platforms = platforms.linux; # should work on darwin with a little effort.
|
||||
license = lib.licenses.zlib;
|
||||
license = lib.licenses.unfree;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -29,11 +29,11 @@ let
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "openttd";
|
||||
version = "1.11.1";
|
||||
version = "1.11.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://cdn.openttd.org/openttd-releases/${version}/${pname}-${version}-source.tar.xz";
|
||||
sha256 = "sha256-qZGeLkKbsI+in+jme6m8dckOnvb6ZCSOs0IjoyXUAKM=";
|
||||
sha256 = "sha256-D7qTWiqBX0/ozW3C4q4z9ydpU4cxIo+EimOzpulILm0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake makeWrapper ];
|
||||
|
||||
@@ -54,7 +54,12 @@ let
|
||||
"libsquish"
|
||||
# Not packaged to this date
|
||||
"sheenbidi"
|
||||
];
|
||||
]
|
||||
# Our system angelscript causes linking error on ARM
|
||||
# ld: libangelscript.so: undefined reference to
|
||||
# `CallSystemFunctionNative(asCContext*, asCScriptFunction*, void*, unsigned int*, void*, unsigned long&, void*)'
|
||||
# Bundled angelscript compiles fine
|
||||
++ lib.optional stdenv.hostPlatform.isAarch64 "angelscript";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
@@ -100,15 +105,15 @@ stdenv.mkDerivation rec {
|
||||
harfbuzz
|
||||
mcpp
|
||||
wiiuse
|
||||
angelscript
|
||||
];
|
||||
]
|
||||
++ lib.optional (!stdenv.hostPlatform.isAarch64) angelscript;
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_RECORDER=OFF" # libopenglrecorder is not in nixpkgs
|
||||
"-DUSE_SYSTEM_ANGELSCRIPT=OFF" # doesn't work with 2.31.2 or 2.32.0
|
||||
# doesn't work with our 2.35.0 on aarch64-linux
|
||||
"-DUSE_SYSTEM_ANGELSCRIPT=${if !stdenv.hostPlatform.isAarch64 then "ON" else "OFF"}"
|
||||
"-DCHECK_ASSETS=OFF"
|
||||
"-DUSE_SYSTEM_WIIUSE=ON"
|
||||
"-DUSE_SYSTEM_ANGELSCRIPT=ON"
|
||||
"-DOpenGL_GL_PREFERENCE=GLVND"
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user