1 { lib, stdenv, fetchurl, xorgproto, libX11, libXrender
3 , expat, gettext, perl, guile
4 , SDL, SDL_image, SDL_mixer, SDL_ttf
5 , curl, sqlite, libtool, readline
6 , libogg, libvorbis, libcaca, csound, cunit
9 stdenv.mkDerivation rec {
14 url = "mirror://gnu/liquidwar6/${pname}-${version}.tar.gz";
15 sha256 = "1976nnl83d8wspjhb5d5ivdvdxgb8lp34wp54jal60z4zad581fn";
19 xorgproto libX11 gmp guile
22 SDL SDL_image SDL_mixer SDL_ttf
24 libogg libvorbis csound
25 libXrender libcaca cunit
29 nativeBuildInputs = [ pkg-config ];
31 hardeningDisable = [ "format" ];
33 env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [
34 # Needed with GCC 12 but problematic with some old GCCs
36 "-Wno-error=use-after-free"
38 "-Wno-error=deprecated-declarations"
39 # Avoid GL_GLEXT_VERSION double definition
43 # To avoid problems finding SDL_types.h.
44 configureFlags = [ "CFLAGS=-I${lib.getDev SDL}/include/SDL" ];
47 description = "Quick tactics game";
48 homepage = "https://www.gnu.org/software/liquidwar6/";
49 maintainers = [ maintainers.raskin ];
50 license = licenses.gpl3Plus;
51 platforms = platforms.linux;