1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00

Merge pull request #122134 from fricklerhandwerk/freeciv-gtk

freeciv: build with `gtk` with `gtkClient = true`
This commit is contained in:
davidak 2021-08-03 08:10:12 +02:00 committed by GitHub
commit 677dc1b93b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 ? false, gtk3
, gtkClient ? stdenv.isLinux, gtk3
, qtClient ? false, qt5
, server ? true, readline
, enableSqlite ? true, sqlite
@ -46,6 +46,7 @@ in stdenv.mkDerivation rec {
"--enable-client=qt"
"--with-qt5-includes=${qt5.qtbase.dev}/include"
]
++ optionals gtkClient [ "--enable-client=gtk3.22" ]
++ optional enableSqlite "--enable-fcdb=sqlite3"
++ optional (!gtkClient) "--enable-fcmp=cli"
++ optional (!server) "--disable-server";