Unverified Commit 512432dc authored by 7c6f434c's avatar 7c6f434c Committed by GitHub
Browse files

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

parents 7617a4dc efab4baa
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -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";
}