nixpkgs/pkgs/games/asc/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
1.2 KiB
Nix

{ fetchurl, stdenv, SDL, SDL_image, SDL_mixer, SDL_sound, libsigcxx, physfs
, boost, expat, freetype, libjpeg, wxGTK, lua, perl, pkgconfig, zlib, zip, bzip2,
libpng }:
stdenv.mkDerivation rec {
name = "asc-2.4.0.0";
src = fetchurl {
url = "mirror://sourceforge/asc-hq/${name}.tar.bz2";
sha256 = "1r011l4gsliky6szjvda8xzyhkkc50ahrr7p14911v5ydar0w3hh";
};
configureFlags = [ "--disable-paragui" "--disable-paraguitest" ];
NIX_CFLAGS_COMPILE = "-fpermissive"; # I'm too lazy to catch all gcc47-related problems
hardeningDisable = [ "format" ];
buildInputs = [
SDL SDL_image SDL_mixer SDL_sound libsigcxx physfs boost expat
freetype libjpeg wxGTK lua perl pkgconfig zlib zip bzip2 libpng
];
meta = with stdenv.lib; {
description = "Turn based strategy game";
longDescription = ''
Advanced Strategic Command is a free, turn based strategy game. It is
designed in the tradition of the Battle Isle series from Bluebyte and is
currently available for Windows and Linux.
'';
homepage = http://www.asc-hq.org/;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ viric ];
platforms = platforms.linux;
};
}