1 { fetchurl, lib, stdenv, SDL, SDL_image, SDL_mixer, SDL_sound, libsigcxx, physfs
2 , boost, expat, freetype, libjpeg, wxGTK32, lua, perl, pkg-config, zlib, zip, bzip2
3 , libpng, libtiff, fluidsynth, libmikmod, libvorbis, flac, libogg }:
5 stdenv.mkDerivation rec {
10 url = "mirror://sourceforge/asc-hq/asc-${version}.tar.bz2";
11 sha256 = "1fybasb6srqfg6pqbvh0s0vvzjq9r0n6aq0z44hs7n68kmaam775";
14 configureFlags = [ "--disable-paragui" "--disable-paraguitest" ];
16 NIX_CFLAGS_COMPILE = "-fpermissive -Wno-error=narrowing -std=c++11"; # I'm too lazy to catch all gcc47-related problems
17 hardeningDisable = [ "format" ];
19 nativeBuildInputs = [ pkg-config ];
22 SDL SDL_image SDL_mixer SDL_sound libsigcxx physfs boost expat
23 freetype libjpeg wxGTK32 lua perl zlib zip bzip2 libpng
24 libtiff fluidsynth libmikmod flac libvorbis libogg
28 description = "Turn based strategy game";
31 Advanced Strategic Command is a free, turn based strategy game. It is
32 designed in the tradition of the Battle Isle series from Bluebyte and is
33 currently available for Windows and Linux.
36 homepage = "https://www.asc-hq.org/";
38 license = licenses.gpl2Plus;
40 maintainers = with maintainers; [ raskin ];
41 platforms = platforms.linux;