1 { lib, stdenv, fetchurl
2 , pkg-config, SDL, libxml2, SDL_image, libjpeg, libpng, libGLU, libGL, zlib
3 , dedicatedServer ? false }:
6 versionMajor = "0.2.9";
8 version = "${versionMajor}.${versionMinor}";
11 pname = if dedicatedServer then "armagetronad-dedicated" else "armagetronad";
14 url = "https://launchpad.net/armagetronad/${versionMajor}/${version}/+download/armagetronad-${version}.tbz";
15 sha256 = "sha256-WbbHwBzj+MylQ34z+XSmN1KVQaEapPUsGlwXSZ4m9qE";
18 enableParallelBuilding = true;
22 "--enable-automakedefaults"
24 "--disable-initscripts"
27 "--disable-sysinstall"
28 ] ++ lib.optional dedicatedServer "--enable-dedicated";
30 nativeBuildInputs = [ pkg-config ];
32 buildInputs = [ libxml2 zlib ]
33 ++ lib.optionals (!dedicatedServer) [ SDL SDL_image libxml2 libjpeg libpng libGLU libGL ];
36 homepage = "http://armagetronad.org";
37 description = "A multiplayer networked arcade racing game in 3D similar to Tron";
38 maintainers = with maintainers; [ numinit ];
39 license = licenses.gpl2Plus;
40 platforms = platforms.linux;