warzone: 3.2.3 -> 3.3.0_beta1
This commit is contained in:
parent
fba7d8e27f
commit
bdda1e5b66
|
@ -1,5 +1,6 @@
|
||||||
{ stdenv, lib, fetchurl, perl, unzip, zip, which, pkgconfig
|
{ stdenv, mkDerivation, fetchurl, autoconf, automake
|
||||||
, qtbase, qtscript, SDL2, libtheora, openal, glew, physfs, fribidi, libXrandr
|
, perl, unzip, zip, which, pkgconfig, qtbase, qtscript
|
||||||
|
, SDL2, libtheora, openal, glew, physfs, fribidi, libXrandr
|
||||||
, withVideos ? false
|
, withVideos ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -11,17 +12,25 @@ let
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
mkDerivation rec {
|
||||||
version = "3.2.3";
|
name = "${pname}-${main}_${sub}";
|
||||||
name = "${pname}-${version}";
|
main = "3.3.0";
|
||||||
|
sub = "beta1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/${pname}/releases/${version}/${name}.tar.xz";
|
url = "mirror://sourceforge/${pname}/releases/${main}/${name}.tar.xz";
|
||||||
sha256 = "10kmpr4cby95zwqsl1zwx95d9achli6khq7flv6xmrq30a39xazw";
|
sha256 = "1jnc334ps88v14cbkp499kk7ini7mbrs1xsz7d04y0w238q407zn";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ qtbase qtscript SDL2 libtheora openal glew physfs fribidi libXrandr ];
|
buildInputs = [
|
||||||
nativeBuildInputs = [ perl zip unzip pkgconfig ];
|
qtbase qtscript SDL2 libtheora openal
|
||||||
|
glew physfs fribidi libXrandr
|
||||||
|
];
|
||||||
|
nativeBuildInputs = [
|
||||||
|
perl zip unzip pkgconfig autoconf automake
|
||||||
|
];
|
||||||
|
|
||||||
|
preConfigure = "./autogen.sh";
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace lib/exceptionhandler/dumpinfo.cpp \
|
substituteInPlace lib/exceptionhandler/dumpinfo.cpp \
|
||||||
|
@ -36,7 +45,8 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
postInstall = lib.optionalString withVideos "cp ${sequences_src} $out/share/warzone2100/sequences.wz";
|
postInstall = stdenv.lib.optionalString withVideos
|
||||||
|
"cp ${sequences_src} $out/share/warzone2100/sequences.wz";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A free RTS game, originally developed by Pumpkin Studios";
|
description = "A free RTS game, originally developed by Pumpkin Studios";
|
||||||
|
|
Loading…
Reference in New Issue