nixpkgs/pkgs/games/armagetronad/default.nix

31 lines
903 B
Nix
Raw Normal View History

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