diff options
author | ambrop7@gmail.com <Ambroz Bizjak> | 2014-06-15 11:40:24 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-06-15 23:38:01 +0200 |
commit | 576fa310b2a8a17fd768734d618e175d9656841e (patch) | |
tree | 893fc8beba2c1c57d89dcc8c19315035cb1866ac /pkgs/games/warzone2100 | |
parent | b5ca04f4a88c86cd8132f8ca7080bd6d7e328599 (diff) | |
download | nixpkgs-576fa310b2a8a17fd768734d618e175d9656841e.tar nixpkgs-576fa310b2a8a17fd768734d618e175d9656841e.tar.gz nixpkgs-576fa310b2a8a17fd768734d618e175d9656841e.tar.bz2 nixpkgs-576fa310b2a8a17fd768734d618e175d9656841e.tar.lz nixpkgs-576fa310b2a8a17fd768734d618e175d9656841e.tar.xz nixpkgs-576fa310b2a8a17fd768734d618e175d9656841e.tar.zst nixpkgs-576fa310b2a8a17fd768734d618e175d9656841e.zip |
Warzone2100: Update to 3.1.1.
Changed to use openal-soft, which makes sound work, in combination with https://github.com/NixOS/nixpkgs/pull/2947 . Added optional installation of campaign videos, not enabled by default.
Diffstat (limited to 'pkgs/games/warzone2100')
-rw-r--r-- | pkgs/games/warzone2100/default.nix | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/pkgs/games/warzone2100/default.nix b/pkgs/games/warzone2100/default.nix index 7468ccdd2b8..284d420fe7f 100644 --- a/pkgs/games/warzone2100/default.nix +++ b/pkgs/games/warzone2100/default.nix @@ -1,23 +1,35 @@ -{ stdenv, fetchurl, bison, flex, gettext, pkgconfig, SDL, libpng, libtheora -, openal, popt, physfs, mesa, quesoglc, zip, unzip, which +{ stdenv, fetchurl, bison, flex, gettext, pkgconfig, libpng +, libtheora, openalSoft, physfs, mesa, fribidi, fontconfig +, freetype, qt4, glew, libogg, libvorbis, zlib, libX11 +, libXrandr, zip, unzip, which +, withVideos ? false }: stdenv.mkDerivation rec { pname = "warzone2100"; - version = "2.3.9"; + version = "3.1.1"; name = "${pname}-${version}"; src = fetchurl { - url = "mirror://sourceforge/${pname}/${name}.tar.gz"; - sha256 = "1nvs4slnl75b64pf9gwcpbra56jzcbxyv83fis5pki69aavkp14y"; + url = "mirror://sourceforge/${pname}/releases/${version}/${name}.tar.xz"; + sha256 = "c937a2e2c7afdad00b00767636234bbec4d8b18efb008073445439d32edb76cf"; }; - buildInputs = [ bison flex gettext pkgconfig SDL libpng libtheora openal - popt physfs mesa quesoglc zip unzip + sequences_src = fetchurl { + url = "mirror://sourceforge/${pname}/warzone2100/Videos/high-quality-en/sequences.wz"; + sha256 = "90ff552ca4a70e2537e027e22c5098ea4ed1bc11bb7fc94138c6c941a73d29fa"; + }; + buildInputs = [ bison flex gettext pkgconfig libpng libtheora openalSoft + physfs mesa fribidi fontconfig freetype qt4 + glew libogg libvorbis zlib libX11 libXrandr zip + unzip ]; patchPhase = '' substituteInPlace lib/exceptionhandler/dumpinfo.cpp \ --replace "which %s" "${which}/bin/which %s" - substituteInPlace lib/exceptionhandler/exceptionhandler.c \ + substituteInPlace lib/exceptionhandler/exceptionhandler.cpp \ --replace "which %s" "${which}/bin/which %s" ''; + configureFlags = "--with-backend=qt --with-distributor=NixOS"; + postInstall = [] + ++ stdenv.lib.optional withVideos "cp ${sequences_src} $out/share/warzone2100/sequences.wz"; meta = { description = "A free RTS game, originally developed by Pumpkin Studios"; longDescription = '' |