freeciv: do not enable gtkClient always on linux

makes it possible to use the qtClient
This commit is contained in:
Artturin 2021-09-06 17:39:49 +03:00
parent a2c2a38f70
commit 48082af9b8

View file

@ -1,7 +1,7 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, lua5_3, pkg-config, python3
, zlib, bzip2, curl, xz, gettext, libiconv
, sdlClient ? true, SDL, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx, freetype, fluidsynth
, gtkClient ? stdenv.isLinux, gtk3
, gtkClient ? false, gtk3
, qtClient ? false, qt5
, server ? true, readline
, enableSqlite ? true, sqlite
@ -47,6 +47,10 @@ stdenv.mkDerivation rec {
++ lib.optional (!gtkClient) "--enable-fcmp=cli"
++ lib.optional (!server) "--disable-server";
postFixup = lib.optionalString qtClient ''
wrapQtApp $out/bin/freeciv-qt
'';
enableParallelBuilding = true;
meta = with lib; {