globulation2: fix strictDeps build, mark cross as broken (#375070)

This commit is contained in:
7c6f434c
2025-01-19 18:47:51 +00:00
committed by GitHub
+12 -2
View File
@@ -66,7 +66,17 @@ stdenv.mkDerivation rec {
sed -i -e "s@env = Environment()@env = Environment( ENV = os.environ )@" SConstruct
'';
nativeBuildInputs = [ scons ];
# fix sdl-config for cross
# TODO: remaining *-config, and make it work for !(build.canExecute host)
preBuild = ''
substituteInPlace SConstruct \
--replace-fail sdl-config "${lib.getExe' (lib.getDev SDL) "sdl-config"}"
'';
nativeBuildInputs = [
scons
bsdiff # bspatch
];
buildInputs = [
libGLU
libGL
@@ -80,7 +90,6 @@ stdenv.mkDerivation rec {
libogg
boost
fribidi
bsdiff
];
sconsFlags = [
@@ -97,6 +106,7 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
license = licenses.gpl3;
broken = !stdenv.buildPlatform.canExecute stdenv.hostPlatform;
};
passthru.updateInfo.downloadPage = "http://globulation2.org/wiki/Download_and_Install";
}