diff options
author | Artturin <Artturin@artturin.com> | 2021-09-06 23:18:32 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2021-09-06 23:18:32 +0300 |
commit | a9dacd437f2a87978a429a05f92009eb99d943de (patch) | |
tree | d938b201779c5b2dd734a5bcccff971421ed6465 /pkgs/games/freeciv/default.nix | |
parent | 48082af9b89c4f662be46862e8199fe6b8b885bf (diff) |
freeciv: wrap gtkClient
Diffstat (limited to 'pkgs/games/freeciv/default.nix')
-rw-r--r-- | pkgs/games/freeciv/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/games/freeciv/default.nix b/pkgs/games/freeciv/default.nix index afb42cc4d3069..4b022615e6c0c 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 ? false, gtk3 +, gtkClient ? false, gtk3, wrapGAppsHook , qtClient ? false, qt5 , server ? true, readline , enableSqlite ? true, sqlite @@ -26,7 +26,8 @@ stdenv.mkDerivation rec { ''; nativeBuildInputs = [ autoreconfHook pkg-config ] - ++ lib.optional qtClient [ qt5.wrapQtAppsHook ]; + ++ lib.optional qtClient [ qt5.wrapQtAppsHook ] + ++ lib.optional gtkClient [ wrapGAppsHook ]; buildInputs = [ lua5_3 zlib bzip2 curl xz gettext libiconv ] ++ lib.optionals sdlClient [ SDL SDL_mixer SDL_image SDL_ttf SDL_gfx freetype fluidsynth ] @@ -36,6 +37,7 @@ stdenv.mkDerivation rec { ++ lib.optional enableSqlite sqlite; dontWrapQtApps = true; + dontWrapGApps = true; configureFlags = [ "--enable-shared" ] ++ lib.optional sdlClient "--enable-client=sdl" @@ -49,6 +51,8 @@ stdenv.mkDerivation rec { postFixup = lib.optionalString qtClient '' wrapQtApp $out/bin/freeciv-qt + '' + lib.optionalString gtkClient '' + wrapGApp $out/bin/freeciv-gtk3.22 ''; enableParallelBuilding = true; |