3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/armagetronad/default.nix

28 lines
843 B
Nix
Raw Normal View History

2016-08-22 04:29:06 +01:00
{ stdenv, fetchurl, SDL, libxml2, SDL_image, libjpeg, libpng, mesa, zlib }:
let
versionMajor = "0.2.8";
2017-05-31 14:53:32 +01:00
versionMinor = "3.4";
version = "${versionMajor}.${versionMinor}";
in
stdenv.mkDerivation {
name = "armagetron-${version}";
src = fetchurl {
2017-05-31 14:53:32 +01:00
url = "https://launchpad.net/armagetronad/${versionMajor}/${versionMajor}.${versionMinor}/+download/armagetronad-${version}.src.tar.bz2";
sha256 = "157pp84wf0q3bdb72rnbm3ck0czwx2ply6lyhj8z7kfdc7csdbr3";
};
2016-08-22 04:29:06 +01:00
NIX_LDFLAGS = [ "-lSDL_image" ];
2016-08-22 04:29:06 +01:00
configureFlags = [ "--disable-etc" ];
buildInputs = [ SDL SDL_image libxml2 libjpeg libpng mesa zlib ];
2015-11-02 14:33:32 +00:00
meta = with stdenv.lib; {
homepage = http://armagetronad.org;
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;
};
}