summary refs log tree commit diff
path: root/pkgs/games/armagetronad/default.nix
blob: edb739125c01433425e649439fa217d93a189cc8 (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
{ stdenv, fetchurl, SDL, libxml2, SDL_image, libjpeg, libpng, libGLU, libGL, zlib }:

let
  versionMajor = "0.2.8";
  versionMinor = "3.4";
  version = "${versionMajor}.${versionMinor}";
in

stdenv.mkDerivation {
  pname = "armagetron";
  inherit version;
  src = fetchurl {
    url = "https://launchpad.net/armagetronad/${versionMajor}/${versionMajor}.${versionMinor}/+download/armagetronad-${version}.src.tar.bz2";
    sha256 = "157pp84wf0q3bdb72rnbm3ck0czwx2ply6lyhj8z7kfdc7csdbr3";
  };

  NIX_LDFLAGS = [ "-lSDL_image" ];

  enableParallelBuilding = true;

  configureFlags = [ "--disable-etc" ];
  buildInputs = [ SDL SDL_image libxml2 libjpeg libpng libGLU libGL zlib ];

  meta = with stdenv.lib; {
    homepage = http://armagetronad.org;
    description = "An multiplayer networked arcade racing game in 3D similar to Tron";
    license = licenses.gpl2;
    platforms = platforms.linux;
  };
}