python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / games / armagetronad / default.nix
blob27f509c3f72a867ad7cc1ada662b28cb16d3bd23
1 { lib, stdenv, fetchurl
2 , pkg-config, SDL, libxml2, SDL_image, libjpeg, libpng, libGLU, libGL, zlib
3 , dedicatedServer ? false }:
5 let
6   versionMajor = "0.2.9";
7   versionMinor = "1.0";
8   version = "${versionMajor}.${versionMinor}";
9 in
10 stdenv.mkDerivation {
11   pname = if dedicatedServer then "armagetronad-dedicated" else "armagetronad";
12   inherit version;
13   src = fetchurl {
14     url = "https://launchpad.net/armagetronad/${versionMajor}/${version}/+download/armagetronad-${version}.tbz";
15     sha256 = "sha256-WbbHwBzj+MylQ34z+XSmN1KVQaEapPUsGlwXSZ4m9qE";
16   };
18   enableParallelBuilding = true;
20   configureFlags = [
21     "--enable-memmanager"
22     "--enable-automakedefaults"
23     "--disable-useradd"
24     "--disable-initscripts"
25     "--disable-etc"
26     "--disable-uninstall"
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 ];
35   meta = with lib; {
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;
41   };