summaryrefslogtreecommitdiffstats
path: root/pkgs/games
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2021-09-06 17:39:49 +0300
committerArtturin <Artturin@artturin.com>2021-09-06 23:10:55 +0300
commit48082af9b89c4f662be46862e8199fe6b8b885bf (patch)
tree34a5d04a9c0bbbdbd8e1f7541d318ceb74002126 /pkgs/games
parenta2c2a38f70a1218a2a5403f4d250bb8fbd4fbf0d (diff)
freeciv: do not enable gtkClient always on linux
makes it possible to use the qtClient
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/freeciv/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/games/freeciv/default.nix b/pkgs/games/freeciv/default.nix
index 051266fa8007..afb42cc4d306 100644
--- a/pkgs/games/freeciv/default.nix
+++ b/pkgs/games/freeciv/default.nix
@@ -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; {