mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
armagetronad: 0.2.8.3.5 -> 0.2.9.1.0
This commit is contained in:
parent
a49d810552
commit
f3e8b9c6bf
|
@ -1,30 +1,42 @@
|
||||||
{ lib, stdenv, fetchurl, SDL, libxml2, SDL_image, libjpeg, libpng, libGLU, libGL, zlib }:
|
{ lib, stdenv, fetchurl
|
||||||
|
, pkg-config, SDL, libxml2, SDL_image, libjpeg, libpng, libGLU, libGL, zlib
|
||||||
|
, dedicatedServer ? false }:
|
||||||
|
|
||||||
let
|
let
|
||||||
versionMajor = "0.2.8";
|
versionMajor = "0.2.9";
|
||||||
versionMinor = "3.5";
|
versionMinor = "1.0";
|
||||||
version = "${versionMajor}.${versionMinor}";
|
version = "${versionMajor}.${versionMinor}";
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "armagetron";
|
pname = if dedicatedServer then "armagetronad-dedicated" else "armagetronad";
|
||||||
inherit version;
|
inherit version;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://launchpad.net/armagetronad/${versionMajor}/${versionMajor}.${versionMinor}/+download/armagetronad-${version}.src.tar.bz2";
|
url = "https://launchpad.net/armagetronad/${versionMajor}/${version}/+download/armagetronad-${version}.tbz";
|
||||||
sha256 = "1vyja7mzivs3pacxb7kznndsgqhq4p0f7x2zg55dckvzqwprdhqx";
|
sha256 = "sha256-WbbHwBzj+MylQ34z+XSmN1KVQaEapPUsGlwXSZ4m9qE";
|
||||||
};
|
};
|
||||||
|
|
||||||
NIX_LDFLAGS = "-lSDL_image";
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
configureFlags = [ "--disable-etc" ];
|
configureFlags = [
|
||||||
buildInputs = [ SDL SDL_image libxml2 libjpeg libpng libGLU libGL zlib ];
|
"--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; {
|
meta = with lib; {
|
||||||
homepage = "http://armagetronad.org";
|
homepage = "http://armagetronad.org";
|
||||||
description = "An multiplayer networked arcade racing game in 3D similar to Tron";
|
description = "A multiplayer networked arcade racing game in 3D similar to Tron";
|
||||||
license = licenses.gpl2;
|
maintainers = with maintainers; [ numinit ];
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue