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

stdenv.mkDerivation {
  pname = "warmux";
  version = "unstable-2017-10-20";

  src = fetchFromGitHub {
    owner = "fluxer";
    repo = "warmux";
    rev = "8f81d4fc309a548ae89a068c2dde27b7e7ef8851";
    sha256 = "1hvzglsmp75xiqqb0k75qjz4jwi8kl3fhn8zfsz53hhhqmbw6wkr";
  };

  preConfigure = "patchShebangs autogen.sh && ./autogen.sh";
  configureFlagsArray = ("CFLAGS=-include ${zlib.dev}/include/zlib.h");

  nativeBuildInputs = [
    autoconf automake gettext intltool libtool pkgconfig
  ];
  buildInputs = [
    zlib curl gnutls fribidi libpng SDL SDL_gfx SDL_image SDL_mixer
    SDL_net SDL_ttf libunwind libX11 xorgproto libxml2 perl
  ];
  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    description = "Ballistics turn-based battle game between teams - unofficial copy";
    maintainers = with maintainers; [ raskin ];
    platforms = platforms.linux;
    license = with licenses; [ gpl2 ufl ];
    homepage = https://github.com/fluxer/warmux;
  };
}