about summary refs log tree commit diff
path: root/pkgs/games/warmux/default.nix
blob: a56afbbf44b5b94d1ac8275ef25a4c4acec8c6a8 (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
{ stdenv, fetchurl
, zlib, curl, gnutls, fribidi, libpng, SDL, SDL_gfx, SDL_image, SDL_mixer
, SDL_net, SDL_ttf, libunwind, libX11, xproto, libxml2, pkgconfig
, gettext, intltool, libtool, perl
}:

stdenv.mkDerivation rec {
  name = "warmux-${version}";
  version = "11.04.1";

  src = fetchurl {
    url = "http://download.gna.org/warmux/${name}.tar.bz2";
    sha256 = "1vp44wdpnb1g6cddmn3nphc543pxsdhjis52mfif0p2c7qslz73q";
  };

  buildInputs =
    [ zlib curl gnutls fribidi libpng SDL SDL_gfx SDL_image SDL_mixer
      SDL_net SDL_ttf libunwind libX11 xproto libxml2 pkgconfig
      gettext intltool libtool perl
    ];

  configureFlagsArray = ("CFLAGS=-include ${zlib.dev}/include/zlib.h");

  patches = [ ./gcc-fix.patch ];

  meta = with stdenv.lib; {
    description = "Ballistics turn-based battle game between teams";
    maintainers = with maintainers;
    [
      raskin
    ];
    platforms = platforms.linux;
    license = licenses.gpl2;
    downloadPage = "http://download.gna.org/warmux/";
  };
}