2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, SDL, libxml2, SDL_image, libjpeg, libpng, libGLU, libGL, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
versionMajor = "0.2.8";
|
|
|
|
versionMinor = "3.5";
|
|
|
|
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 = "1vyja7mzivs3pacxb7kznndsgqhq4p0f7x2zg55dckvzqwprdhqx";
|
|
|
|
};
|
|
|
|
|
|
|
|
NIX_LDFLAGS = "-lSDL_image";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
configureFlags = [ "--disable-etc" ];
|
|
|
|
buildInputs = [ SDL SDL_image libxml2 libjpeg libpng libGLU libGL zlib ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://armagetronad.org";
|
|
|
|
description = "An multiplayer networked arcade racing game in 3D similar to Tron";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|