2018-12-31 04:40:47 +01:00
|
|
|
{ stdenv, fetchurl, xorgproto, libX11, libXrender
|
2018-12-20 18:02:20 +01:00
|
|
|
, gmp, libjpeg, libpng
|
2015-12-29 13:55:54 +01:00
|
|
|
, expat, gettext, perl, guile
|
2015-09-15 06:27:19 +02:00
|
|
|
, SDL, SDL_image, SDL_mixer, SDL_ttf
|
2018-09-21 00:19:01 +02:00
|
|
|
, curl, sqlite, libtool, readline
|
2015-12-29 13:55:54 +01:00
|
|
|
, libogg, libvorbis, libcaca, csound, cunit } :
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "liquidwar6";
|
2015-12-29 13:55:54 +01:00
|
|
|
version = "0.6.3902";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://gnu/liquidwar6/${pname}-${version}.tar.gz";
|
2015-12-29 13:55:54 +01:00
|
|
|
sha256 = "1976nnl83d8wspjhb5d5ivdvdxgb8lp34wp54jal60z4zad581fn";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-12-31 04:40:47 +01:00
|
|
|
xorgproto libX11 gmp guile
|
2018-12-20 18:02:20 +01:00
|
|
|
libjpeg libpng
|
2009-12-16 17:06:30 +01:00
|
|
|
expat gettext perl
|
|
|
|
SDL SDL_image SDL_mixer SDL_ttf
|
2015-09-15 06:27:19 +02:00
|
|
|
curl sqlite
|
2014-08-03 13:59:13 +02:00
|
|
|
libogg libvorbis csound
|
|
|
|
libXrender libcaca cunit
|
2018-09-21 00:19:01 +02:00
|
|
|
libtool readline
|
2009-12-16 17:06:30 +01:00
|
|
|
];
|
2012-02-16 13:22:05 +01:00
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-12 04:58:23 +01:00
|
|
|
|
2018-12-20 18:01:46 +01:00
|
|
|
NIX_CFLAGS_COMPILE =
|
|
|
|
"-Wno-error=deprecated-declarations" +
|
|
|
|
# Avoid GL_GLEXT_VERSION double definition
|
|
|
|
" -DNO_SDL_GLEXT"
|
|
|
|
;
|
2016-08-27 23:55:58 +02:00
|
|
|
|
2015-12-29 13:55:54 +01:00
|
|
|
# To avoid problems finding SDL_types.h.
|
2015-12-31 09:47:26 +01:00
|
|
|
configureFlags = [ "CFLAGS=-I${SDL.dev}/include/SDL" ];
|
2009-12-16 17:06:30 +01:00
|
|
|
|
2015-12-29 13:55:54 +01:00
|
|
|
meta = with stdenv.lib; {
|
2009-12-16 17:06:30 +01:00
|
|
|
description = "Quick tactics game";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.gnu.org/software/liquidwar6/";
|
2015-12-29 13:55:54 +01:00
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2009-12-16 17:06:30 +01:00
|
|
|
};
|
|
|
|
}
|