2021-01-30 07:32:07 +01:00
|
|
|
{ lib, stdenv, fetchurl
|
|
|
|
, pkg-config, SDL, libxml2, SDL_image, libjpeg, libpng, libGLU, libGL, zlib
|
|
|
|
, dedicatedServer ? false }:
|
2015-10-31 00:34:20 +01:00
|
|
|
|
|
|
|
let
|
2021-01-30 07:32:07 +01:00
|
|
|
versionMajor = "0.2.9";
|
|
|
|
versionMinor = "1.0";
|
2015-10-31 00:34:20 +01:00
|
|
|
version = "${versionMajor}.${versionMinor}";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2021-01-30 07:32:07 +01:00
|
|
|
pname = if dedicatedServer then "armagetronad-dedicated" else "armagetronad";
|
2019-08-13 23:52:01 +02:00
|
|
|
inherit version;
|
2015-10-31 00:34:20 +01:00
|
|
|
src = fetchurl {
|
2021-01-30 07:32:07 +01:00
|
|
|
url = "https://launchpad.net/armagetronad/${versionMajor}/${version}/+download/armagetronad-${version}.tbz";
|
|
|
|
sha256 = "sha256-WbbHwBzj+MylQ34z+XSmN1KVQaEapPUsGlwXSZ4m9qE";
|
2015-10-31 00:34:20 +01:00
|
|
|
};
|
|
|
|
|
2017-05-31 15:56:29 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-30 07:32:07 +01: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 ];
|
2015-10-31 00:34:20 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-03 22:01:42 +02:00
|
|
|
homepage = "http://armagetronad.org";
|
2021-01-30 07:32:07 +01:00
|
|
|
description = "A multiplayer networked arcade racing game in 3D similar to Tron";
|
|
|
|
maintainers = with maintainers; [ numinit ];
|
|
|
|
license = licenses.gpl2Plus;
|
2015-11-02 15:29:16 +01:00
|
|
|
platforms = platforms.linux;
|
2015-10-31 00:34:20 +01:00
|
|
|
};
|
|
|
|
}
|