diff options
author | Nikolay Amiantov <ab@fmap.me> | 2017-01-07 18:47:55 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2017-01-07 18:48:15 +0300 |
commit | 6a55b529445a4ca23ce8f7aafcb397a4777eb22a (patch) | |
tree | ad2cb8c890b22115b4d3a8cc4f566cc4ef205a88 /pkgs/games/warzone2100 | |
parent | 7e3ed8b44ffff62a85f76036f7500bf5578b9a8a (diff) | |
download | nixlib-6a55b529445a4ca23ce8f7aafcb397a4777eb22a.tar nixlib-6a55b529445a4ca23ce8f7aafcb397a4777eb22a.tar.gz nixlib-6a55b529445a4ca23ce8f7aafcb397a4777eb22a.tar.bz2 nixlib-6a55b529445a4ca23ce8f7aafcb397a4777eb22a.tar.lz nixlib-6a55b529445a4ca23ce8f7aafcb397a4777eb22a.tar.xz nixlib-6a55b529445a4ca23ce8f7aafcb397a4777eb22a.tar.zst nixlib-6a55b529445a4ca23ce8f7aafcb397a4777eb22a.zip |
warzone2100: 2.1.5 -> 2.2.2
Diffstat (limited to 'pkgs/games/warzone2100')
-rw-r--r-- | pkgs/games/warzone2100/default.nix | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/pkgs/games/warzone2100/default.nix b/pkgs/games/warzone2100/default.nix index 7c578f370d7d..dd21d13a0273 100644 --- a/pkgs/games/warzone2100/default.nix +++ b/pkgs/games/warzone2100/default.nix @@ -1,7 +1,5 @@ -{ stdenv, fetchurl, bison, flex, gettext, pkgconfig, libpng -, libtheora, openal, physfs, mesa, fribidi, fontconfig -, freetype, qt4, glew, libogg, libvorbis, zlib, libX11 -, libXrandr, zip, unzip, which, perl +{ stdenv, lib, fetchurl, perl, unzip, zip, which, pkgconfig +, qtbase, qtscript, SDL2, libtheora, openal, glew, physfs, fribidi , withVideos ? false }: @@ -14,28 +12,31 @@ let in stdenv.mkDerivation rec { - version = "3.1.5"; + version = "3.2.2"; name = "${pname}-${version}"; + src = fetchurl { url = "mirror://sourceforge/${pname}/releases/${version}/${name}.tar.xz"; - sha256 = "0hm49i2knvvg3wlnryv7h4m84s3qa7jfyym5yy6365sx8wzcrai1"; + sha256 = "064xfxwkqpvqyy7kz46cwi71mxmimxi4wgjly9g51wwxkvz8snmg"; }; - buildInputs = [ bison flex gettext pkgconfig libpng libtheora openal - physfs mesa fribidi fontconfig freetype qt4 - glew libogg libvorbis zlib libX11 libXrandr zip - unzip perl - ]; - patchPhase = '' + + buildInputs = [ qtbase qtscript SDL2 libtheora openal glew physfs fribidi ]; + nativeBuildInputs = [ perl zip unzip pkgconfig ]; + + postPatch = '' substituteInPlace lib/exceptionhandler/dumpinfo.cpp \ --replace "which %s" "${which}/bin/which %s" substituteInPlace lib/exceptionhandler/exceptionhandler.cpp \ --replace "which %s" "${which}/bin/which %s" ''; - configureFlags = "--with-backend=qt --with-distributor=NixOS"; - NIX_CFLAGS_COMPILE = "-fpermissive"; # GL header minor incompatibility + configureFlags = [ "--with-distributor=NixOS" ]; + + hardeningDisable = [ "format" ]; + + enableParallelBuilding = true; - postInstall = stdenv.lib.optionalString withVideos "cp ${sequences_src} $out/share/warzone2100/sequences.wz"; + postInstall = 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"; |