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