nixpkgs/pkgs/games/armagetronad/default.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

2021-01-30 06:32:07 +00:00
{ lib, stdenv, fetchurl
, pkg-config, SDL, libxml2, SDL_image, libjpeg, libpng, libGLU, libGL, zlib
, dedicatedServer ? false }:
let
2021-01-30 06:32:07 +00:00
versionMajor = "0.2.9";
versionMinor = "1.0";
version = "${versionMajor}.${versionMinor}";
in
stdenv.mkDerivation {
2021-01-30 06:32:07 +00:00
pname = if dedicatedServer then "armagetronad-dedicated" else "armagetronad";
2019-08-13 22:52:01 +01:00
inherit version;
src = fetchurl {
2021-01-30 06:32:07 +00:00
url = "https://launchpad.net/armagetronad/${versionMajor}/${version}/+download/armagetronad-${version}.tbz";
sha256 = "sha256-WbbHwBzj+MylQ34z+XSmN1KVQaEapPUsGlwXSZ4m9qE";
};
2017-05-31 14:56:29 +01:00
enableParallelBuilding = true;
2021-01-30 06:32:07 +00:00
configureFlags = [
"--enable-memmanager"
"--enable-automakedefaults"
"--disable-useradd"
"--disable-initscripts"
"--disable-etc"
"--disable-uninstall"
"--disable-sysinstall"
] ++ lib.optional dedicatedServer "--enable-dedicated";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libxml2 zlib ]
++ lib.optionals (!dedicatedServer) [ SDL SDL_image libxml2 libjpeg libpng libGLU libGL ];
meta = with lib; {
2020-04-03 21:01:42 +01:00
homepage = "http://armagetronad.org";
2021-01-30 06:32:07 +00:00
description = "A multiplayer networked arcade racing game in 3D similar to Tron";
maintainers = with maintainers; [ numinit ];
license = licenses.gpl2Plus;
2015-11-02 14:29:16 +00:00
platforms = platforms.linux;
};
}