2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, SDL, libxml2, SDL_image, libjpeg, libpng, libGLU, libGL, zlib }:
|
2015-10-30 23:34:20 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
versionMajor = "0.2.8";
|
2020-04-03 21:01:42 +01:00
|
|
|
versionMinor = "3.5";
|
2015-10-30 23:34:20 +00:00
|
|
|
version = "${versionMajor}.${versionMinor}";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "armagetron";
|
|
|
|
inherit version;
|
2015-10-30 23:34:20 +00:00
|
|
|
src = fetchurl {
|
2017-05-31 14:53:32 +01:00
|
|
|
url = "https://launchpad.net/armagetronad/${versionMajor}/${versionMajor}.${versionMinor}/+download/armagetronad-${version}.src.tar.bz2";
|
2020-04-03 21:01:42 +01:00
|
|
|
sha256 = "1vyja7mzivs3pacxb7kznndsgqhq4p0f7x2zg55dckvzqwprdhqx";
|
2015-10-30 23:34:20 +00:00
|
|
|
};
|
|
|
|
|
2019-10-30 00:40:49 +00:00
|
|
|
NIX_LDFLAGS = "-lSDL_image";
|
2015-10-30 23:34:20 +00:00
|
|
|
|
2017-05-31 14:56:29 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-08-22 04:29:06 +01:00
|
|
|
configureFlags = [ "--disable-etc" ];
|
2019-11-10 16:44:34 +00:00
|
|
|
buildInputs = [ SDL SDL_image libxml2 libjpeg libpng libGLU libGL zlib ];
|
2015-10-30 23:34:20 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-03 21:01:42 +01:00
|
|
|
homepage = "http://armagetronad.org";
|
2015-10-30 23:34:20 +00:00
|
|
|
description = "An multiplayer networked arcade racing game in 3D similar to Tron";
|
2015-11-02 14:33:32 +00:00
|
|
|
license = licenses.gpl2;
|
2015-11-02 14:29:16 +00:00
|
|
|
platforms = platforms.linux;
|
2015-10-30 23:34:20 +00:00
|
|
|
};
|
|
|
|
}
|