2021-01-11 08:54:33 +01:00
|
|
|
{ fetchurl, lib, stdenv, SDL, SDL_image, SDL_mixer, SDL_sound, libsigcxx, physfs
|
2021-01-17 03:04:36 +01:00
|
|
|
, boost, expat, freetype, libjpeg, wxGTK, lua, perl, pkg-config, zlib, zip, bzip2
|
2018-04-21 22:43:18 +02:00
|
|
|
, libpng, libtiff, fluidsynth, libmikmod, libvorbis, flac, libogg }:
|
2010-08-29 11:43:46 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-22 23:44:58 +02:00
|
|
|
pname = "asc";
|
|
|
|
version = "2.6.0.0";
|
2010-08-29 11:43:46 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-22 23:44:58 +02:00
|
|
|
url = "mirror://sourceforge/asc-hq/asc-${version}.tar.bz2";
|
2017-08-29 16:07:32 +02:00
|
|
|
sha256 = "1fybasb6srqfg6pqbvh0s0vvzjq9r0n6aq0z44hs7n68kmaam775";
|
2010-08-29 11:43:46 +02:00
|
|
|
};
|
|
|
|
|
2013-03-17 12:02:55 +01:00
|
|
|
configureFlags = [ "--disable-paragui" "--disable-paraguitest" ];
|
|
|
|
|
2022-05-10 02:57:04 +02:00
|
|
|
NIX_CFLAGS_COMPILE = "-fpermissive -Wno-error=narrowing -std=c++11"; # I'm too lazy to catch all gcc47-related problems
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2013-03-17 12:02:55 +01:00
|
|
|
|
2010-08-29 11:43:46 +02:00
|
|
|
buildInputs = [
|
2014-10-01 21:55:40 +02:00
|
|
|
SDL SDL_image SDL_mixer SDL_sound libsigcxx physfs boost expat
|
2021-01-17 03:04:36 +01:00
|
|
|
freetype libjpeg wxGTK lua perl pkg-config zlib zip bzip2 libpng
|
2018-04-21 22:43:18 +02:00
|
|
|
libtiff fluidsynth libmikmod flac libvorbis libogg
|
2010-08-29 11:43:46 +02:00
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2010-08-29 11:43:46 +02: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
|
2018-04-21 22:43:18 +02:00
|
|
|
currently available for Windows and Linux.
|
2010-08-29 11:43:46 +02:00
|
|
|
'';
|
|
|
|
|
2021-12-29 16:02:51 +01:00
|
|
|
homepage = "https://www.asc-hq.org/";
|
2010-08-29 11:43:46 +02:00
|
|
|
|
2014-09-19 19:56:08 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2010-08-29 11:43:46 +02:00
|
|
|
|
2018-07-22 21:50:19 +02:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2015-11-17 21:29:29 +01:00
|
|
|
platforms = platforms.linux;
|
2010-08-29 11:43:46 +02:00
|
|
|
};
|
|
|
|
}
|