summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2019-09-10 20:12:50 +0100
committerGitHub <noreply@github.com>2019-09-10 20:12:50 +0100
commit32030530a8c2ee56538624638fce9ff922d7d53a (patch)
tree8c904371dbd5e60dc47d873abf2b49ef533fa896 /pkgs
parentdb03dfcc56517d18616615dc4d86cc55885d54b4 (diff)
parent3516b1ddc58a7c22f48d8a5136e6ea9030fde746 (diff)
warzone: 3.2.3 -> 3.3.0 (#66500)
warzone: 3.2.3 -> 3.3.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/games/warzone2100/default.nix29
1 files changed, 19 insertions, 10 deletions
diff --git a/pkgs/games/warzone2100/default.nix b/pkgs/games/warzone2100/default.nix
index 6165cacfdca5..d99a7c44240e 100644
--- a/pkgs/games/warzone2100/default.nix
+++ b/pkgs/games/warzone2100/default.nix
@@ -1,5 +1,6 @@
-{ stdenv, lib, fetchurl, perl, unzip, zip, which, pkgconfig
-, qtbase, qtscript, SDL2, libtheora, openal, glew, physfs, fribidi, libXrandr
+{ stdenv, mkDerivation, fetchurl, autoconf, automake
+, perl, unzip, zip, which, pkgconfig, qtbase, qtscript
+, SDL2, libtheora, openal, glew, physfs, fribidi, libXrandr
, withVideos ? false
}:
@@ -11,17 +12,24 @@ let
};
in
-stdenv.mkDerivation rec {
- version = "3.2.3";
- name = "${pname}-${version}";
+mkDerivation rec {
+ inherit pname;
+ version = "3.3.0";
src = fetchurl {
- url = "mirror://sourceforge/${pname}/releases/${version}/${name}.tar.xz";
- sha256 = "10kmpr4cby95zwqsl1zwx95d9achli6khq7flv6xmrq30a39xazw";
+ url = "mirror://sourceforge/${pname}/releases/${version}/${pname}-${version}_src.tar.xz";
+ sha256 = "1s0n67rh32g0bgq72p4qzkcqjlw58gc70r4r6gl9k90pil9chj6c";
};
- buildInputs = [ qtbase qtscript SDL2 libtheora openal glew physfs fribidi libXrandr ];
- nativeBuildInputs = [ perl zip unzip pkgconfig ];
+ buildInputs = [
+ qtbase qtscript SDL2 libtheora openal
+ glew physfs fribidi libXrandr
+ ];
+ nativeBuildInputs = [
+ perl zip unzip pkgconfig autoconf automake
+ ];
+
+ preConfigure = "./autogen.sh";
postPatch = ''
substituteInPlace lib/exceptionhandler/dumpinfo.cpp \
@@ -36,7 +44,8 @@ stdenv.mkDerivation rec {
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; {
description = "A free RTS game, originally developed by Pumpkin Studios";