Unverified Commit 1173897e authored by Wolfgang Walther's avatar Wolfgang Walther
Browse files

openclonk: cleanup

parent dbe5ce7d
Loading
Loading
Loading
Loading
+34 −27
Original line number Diff line number Diff line
{
  lib,
  stdenv,

  # sources
  fetchurl,
  fetchFromGitHub,
  fetchDebianPatch,

  # nativeBuildInputs
  cmake,
  pkg-config,
  SDL2,
  libvorbis,
  libogg,
  libjpeg,
  libpng,

  gcc-unwrapped,

  # buildInputs
  curl,
  freealut,
  freetype,
  glew,
  tinyxml,
  openal,
  libb2,
  libepoxy,
  curl,
  freealut,
  libjpeg,
  libogg,
  libpng,
  libvorbis,
  openal,
  readline,
  libb2,
  gcc-unwrapped,
  enableSoundtrack ? false, # Enable the "Open Clonk Soundtrack - Explorers Journey" by David Oerther
  SDL2,
  tinyxml,

  # Enable the "Open Clonk Soundtrack - Explorers Journey" by David Oerther
  enableSoundtrack ? false,
}:

let
@@ -53,9 +62,7 @@ stdenv.mkDerivation {

  enableParallelInstalling = false;

  postInstall =
    ''''
    + lib.optionalString enableSoundtrack ''
  postInstall = lib.optionalString enableSoundtrack ''
    ln -sv ${soundtrack_src} $out/share/games/openclonk/Music.ocg
  '';

@@ -65,20 +72,20 @@ stdenv.mkDerivation {
  ];

  buildInputs = [
    SDL2
    libvorbis
    libogg
    libjpeg
    libpng
    curl
    freealut
    freetype
    glew
    tinyxml
    openal
    freealut
    libb2
    libepoxy
    curl
    libjpeg
    libogg
    libpng
    libvorbis
    openal
    readline
    libb2
    SDL2
    tinyxml
  ];

  cmakeFlags = [