summary refs log tree commit diff
path: root/pkgs/games/warzone2100
diff options
context:
space:
mode:
authorRicardo Ardissone <ricardo.ardissone@gmail.com>2016-04-10 23:47:15 -0300
committerRicardo Ardissone <ricardo.ardissone@gmail.com>2016-04-18 07:37:18 -0300
commit5f832739ce9ceae5cac6ec64e2f5314543100462 (patch)
treea15be7650e1685141a87bd86a4e87bd01fbfd8ab /pkgs/games/warzone2100
parent551296a1cec0b9751ab96c420a7481e322ea127d (diff)
downloadnixpkgs-5f832739ce9ceae5cac6ec64e2f5314543100462.tar
nixpkgs-5f832739ce9ceae5cac6ec64e2f5314543100462.tar.gz
nixpkgs-5f832739ce9ceae5cac6ec64e2f5314543100462.tar.bz2
nixpkgs-5f832739ce9ceae5cac6ec64e2f5314543100462.tar.lz
nixpkgs-5f832739ce9ceae5cac6ec64e2f5314543100462.tar.xz
nixpkgs-5f832739ce9ceae5cac6ec64e2f5314543100462.tar.zst
nixpkgs-5f832739ce9ceae5cac6ec64e2f5314543100462.zip
warzone2100: 3.1.1 -> 3.1.5
Diffstat (limited to 'pkgs/games/warzone2100')
-rw-r--r--pkgs/games/warzone2100/default.nix27
1 files changed, 15 insertions, 12 deletions
diff --git a/pkgs/games/warzone2100/default.nix b/pkgs/games/warzone2100/default.nix
index bd94fbecb2a..7c578f370d7 100644
--- a/pkgs/games/warzone2100/default.nix
+++ b/pkgs/games/warzone2100/default.nix
@@ -1,25 +1,29 @@
 { stdenv, fetchurl, bison, flex, gettext, pkgconfig, libpng
 , libtheora, openal, physfs, mesa, fribidi, fontconfig
 , freetype, qt4, glew, libogg, libvorbis, zlib, libX11
-, libXrandr, zip, unzip, which
+, libXrandr, zip, unzip, which, perl
 , withVideos ? false
 }:
-stdenv.mkDerivation rec {
+
+let
   pname = "warzone2100";
-  version = "3.1.1";
-  name = "${pname}-${version}";
-  src = fetchurl {
-    url = "mirror://sourceforge/${pname}/releases/${version}/${name}.tar.xz";
-    sha256 = "c937a2e2c7afdad00b00767636234bbec4d8b18efb008073445439d32edb76cf";
-  };
   sequences_src = fetchurl {
     url = "mirror://sourceforge/${pname}/warzone2100/Videos/high-quality-en/sequences.wz";
     sha256 = "90ff552ca4a70e2537e027e22c5098ea4ed1bc11bb7fc94138c6c941a73d29fa";
   };
+in
+
+stdenv.mkDerivation rec {
+  version = "3.1.5";
+  name = "${pname}-${version}";
+  src = fetchurl {
+    url = "mirror://sourceforge/${pname}/releases/${version}/${name}.tar.xz";
+    sha256 = "0hm49i2knvvg3wlnryv7h4m84s3qa7jfyym5yy6365sx8wzcrai1";
+  };
   buildInputs = [ bison flex gettext pkgconfig libpng libtheora openal
                   physfs mesa fribidi fontconfig freetype qt4
                   glew libogg libvorbis zlib libX11 libXrandr zip
-                  unzip
+                  unzip perl
                 ];
   patchPhase = ''
     substituteInPlace lib/exceptionhandler/dumpinfo.cpp \
@@ -31,8 +35,7 @@ stdenv.mkDerivation rec {
 
   NIX_CFLAGS_COMPILE = "-fpermissive"; # GL header minor incompatibility
 
-  postInstall = []
-    ++ stdenv.lib.optional 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";
@@ -45,7 +48,7 @@ stdenv.mkDerivation rec {
       missiles. The game offers campaign, multi-player, and single-player
       skirmish modes. An extensive tech tree with over 400 different
       technologies, combined with the unit design system, allows for a wide
-      variety of possible units and tactics. 
+      variety of possible units and tactics.
     '';
     homepage = http://wz2100.net;
     license = licenses.gpl2Plus;