nixpkgs/pkgs/games/liquidwar/default.nix
Franz Pletz aff1f4ab94 Use general hardening flag toggle lists
The following parameters are now available:

  * hardeningDisable
    To disable specific hardening flags
  * hardeningEnable
    To enable specific hardening flags

Only the cc-wrapper supports this right now, but these may be reused by
other wrappers, builders or setup hooks.

cc-wrapper supports the following flags:

  * fortify
  * stackprotector
  * pie (disabled by default)
  * pic
  * strictoverflow
  * format
  * relro
  * bindnow
2016-03-05 18:55:26 +01:00

40 lines
1021 B
Nix

{ stdenv, fetchurl, xproto, libX11, libXrender
, gmp, mesa, libjpeg, libpng
, expat, gettext, perl, guile
, SDL, SDL_image, SDL_mixer, SDL_ttf
, curl, sqlite
, libogg, libvorbis, libcaca, csound, cunit } :
stdenv.mkDerivation rec {
name = "liquidwar6-${version}";
version = "0.6.3902";
src = fetchurl {
url = "mirror://gnu/liquidwar6/${name}.tar.gz";
sha256 = "1976nnl83d8wspjhb5d5ivdvdxgb8lp34wp54jal60z4zad581fn";
};
buildInputs = [
xproto libX11 gmp guile
mesa libjpeg libpng
expat gettext perl
SDL SDL_image SDL_mixer SDL_ttf
curl sqlite
libogg libvorbis csound
libXrender libcaca cunit
];
hardeningDisable = [ "format" ];
# To avoid problems finding SDL_types.h.
configureFlags = [ "CFLAGS=-I${SDL}/include/SDL" ];
meta = with stdenv.lib; {
description = "Quick tactics game";
homepage = "http://www.gnu.org/software/liquidwar6/";
maintainers = [ maintainers.raskin ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}