summary refs log tree commit diff
path: root/pkgs/games/asc/default.nix
blob: 5243316734e321826710aa9de38495138d27787b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ fetchurl, stdenv, SDL, SDL_image, SDL_mixer, SDL_sound, libsigcxx, physfs
, boost, expat, freetype, libjpeg, wxGTK, lua, perl, pkgconfig, zlib, zip, bzip2,
libpng }:

stdenv.mkDerivation rec {
  name = "asc-2.4.0.0";

  src = fetchurl {
    url = "mirror://sourceforge/asc-hq/${name}.tar.bz2";
    sha256 = "1r011l4gsliky6szjvda8xzyhkkc50ahrr7p14911v5ydar0w3hh";
  };

  configureFlags = [ "--disable-paragui" "--disable-paraguitest" ];

  NIX_CFLAGS_COMPILE = "-fpermissive"; # I'm too lazy to catch all gcc47-related problems

  buildInputs = [
    SDL SDL_image SDL_mixer SDL_sound libsigcxx physfs boost expat
    freetype libjpeg wxGTK lua perl pkgconfig zlib zip bzip2 libpng
  ];

  meta = with stdenv.lib; {
    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; [ viric ];
    platforms = with platforms; linux;
  };
}