xonotic: Remove from the channel

It's 878 MiB compressed.
This commit is contained in:
Eelco Dolstra 2013-05-02 13:13:11 +02:00
parent a1bc05bb55
commit 40cd4a8a9d
2 changed files with 13 additions and 4 deletions

View File

@ -1,29 +1,37 @@
{ stdenv, fetchurl, unzip, SDL, libjpeg, zlib, libvorbis, curl }: { stdenv, fetchurl, unzip, SDL, libjpeg, zlib, libvorbis, curl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "xonotic-0.5.0"; name = "xonotic-0.5.0";
src = fetchurl { src = fetchurl {
url = "http://dl.xonotic.org/${name}.zip"; url = "http://dl.xonotic.org/${name}.zip";
sha256 = "03vkbddffnz6ws3gkwc3qvi6icfsyiqq0dqw2vw5hj2kidm25rsq"; sha256 = "03vkbddffnz6ws3gkwc3qvi6icfsyiqq0dqw2vw5hj2kidm25rsq";
}; };
# Commented out things needed to build cl-release because of errors. # Commented out things needed to build cl-release because of errors.
#buildInputs = [ libX11 libXpm libXext xf86dgaproto libXxf86dga libXxf86vm mesa ]; #buildInputs = [ libX11 libXpm libXext xf86dgaproto libXxf86dga libXxf86vm mesa ];
buildInputs = [ unzip SDL libjpeg ]; buildInputs = [ unzip SDL libjpeg ];
sourceRoot = "Xonotic/source/darkplaces"; sourceRoot = "Xonotic/source/darkplaces";
#patchPhase = '' #patchPhase = ''
# substituteInPlace glquake.h \ # substituteInPlace glquake.h \
# --replace 'typedef char GLchar;' '/*typedef char GLchar;*/' # --replace 'typedef char GLchar;' '/*typedef char GLchar;*/'
#''; #'';
NIX_LDFLAGS="
NIX_LDFLAGS = ''
-rpath ${zlib}/lib -rpath ${zlib}/lib
-rpath ${libvorbis}/lib -rpath ${libvorbis}/lib
-rpath ${curl}/lib -rpath ${curl}/lib
"; '';
buildPhase = '' buildPhase = ''
DP_FS_BASEDIR="$out/share/xonotic" DP_FS_BASEDIR="$out/share/xonotic"
#make DP_FS_BASEDIR=$DP_FS_BASEDIR cl-release #make DP_FS_BASEDIR=$DP_FS_BASEDIR cl-release
make DP_FS_BASEDIR=$DP_FS_BASEDIR sdl-release make DP_FS_BASEDIR=$DP_FS_BASEDIR sdl-release
make DP_FS_BASEDIR=$DP_FS_BASEDIR sv-release make DP_FS_BASEDIR=$DP_FS_BASEDIR sv-release
''; '';
installPhase = '' installPhase = ''
mkdir -p "$out/bin" mkdir -p "$out/bin"
cp darkplaces-dedicated "$out/bin/xonotic-dedicated" cp darkplaces-dedicated "$out/bin/xonotic-dedicated"
@ -32,7 +40,9 @@ stdenv.mkDerivation rec {
mkdir -p "$out/share/xonotic" mkdir -p "$out/share/xonotic"
mv data "$out/share/xonotic" mv data "$out/share/xonotic"
''; '';
dontPatchELF = true; dontPatchELF = true;
meta = { meta = {
description = "A free fast-paced first-person shooter"; description = "A free fast-paced first-person shooter";
longDescription = '' longDescription = ''
@ -46,6 +56,6 @@ stdenv.mkDerivation rec {
homepage = http://www.xonotic.org; homepage = http://www.xonotic.org;
license = with stdenv.lib.licenses; gpl2Plus; license = with stdenv.lib.licenses; gpl2Plus;
maintainers = with stdenv.lib.maintainers; [ astsmtl ]; maintainers = with stdenv.lib.maintainers; [ astsmtl ];
platforms = with stdenv.lib.platforms; linux; #platforms = with stdenv.lib.platforms; linux;
}; };
} }

View File

@ -1960,7 +1960,6 @@ in
xnee = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; xnee = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
xneur = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; xneur = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
xneur_0_8 = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; xneur_0_8 = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
xonotic = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
xorg_sys_opengl = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; xorg_sys_opengl = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
xorgVideoUnichrome = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; xorgVideoUnichrome = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };
xoscope = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; xoscope = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };