2021-01-15 22:18:51 +00:00
|
|
|
{ fetchurl, lib, stdenv, SDL, SDL_image, SDL_mixer, SDL_sound, libsigcxx, physfs
|
2021-02-05 17:12:51 +00:00
|
|
|
, boost, expat, freetype, libjpeg, wxGTK, lua, perl, pkg-config, zlib, zip, bzip2
|
2020-04-24 23:36:52 +00:00
|
|
|
, libpng, libtiff, fluidsynth, libmikmod, libvorbis, flac, libogg }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-28 23:13:55 +00:00
|
|
|
pname = "asc";
|
|
|
|
version = "2.6.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-28 23:13:55 +00:00
|
|
|
url = "mirror://sourceforge/asc-hq/asc-${version}.tar.bz2";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1fybasb6srqfg6pqbvh0s0vvzjq9r0n6aq0z44hs7n68kmaam775";
|
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [ "--disable-paragui" "--disable-paraguitest" ];
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-fpermissive -Wno-error=narrowing"; # I'm too lazy to catch all gcc47-related problems
|
2020-04-24 23:36:52 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
SDL SDL_image SDL_mixer SDL_sound libsigcxx physfs boost expat
|
2021-02-05 17:12:51 +00:00
|
|
|
freetype libjpeg wxGTK lua perl pkg-config zlib zip bzip2 libpng
|
2020-04-24 23:36:52 +00:00
|
|
|
libtiff fluidsynth libmikmod flac libvorbis libogg
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Turn based strategy game";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Advanced Strategic Command is a free, turn based strategy game. It is
|
|
|
|
designed in the tradition of the Battle Isle series from Bluebyte and is
|
|
|
|
currently available for Windows and Linux.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = "http://www.asc-hq.org/";
|
|
|
|
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|