mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
freeciv: format, cleanup
This commit is contained in:
parent
00ee57021d
commit
da88c1e9b6
1 changed files with 14 additions and 21 deletions
|
@ -7,17 +7,14 @@
|
|||
, enableSqlite ? true, sqlite
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (lib) optional optionals;
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "freeciv";
|
||||
version = "2.6.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "freeciv";
|
||||
repo = "freeciv";
|
||||
rev = "R${builtins.replaceStrings [ "." ] [ "_" ] version}";
|
||||
rev = "R${lib.replaceStrings [ "." ] [ "_" ] version}";
|
||||
sha256 = "sha256-7KVtBGihABpcbUm5ac2fuBVaDvbucEJSREPulGUdnUE=";
|
||||
};
|
||||
|
||||
|
@ -29,43 +26,39 @@ in stdenv.mkDerivation rec {
|
|||
'';
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkg-config ]
|
||||
++ optional qtClient [ qt5.wrapQtAppsHook ];
|
||||
++ lib.optional qtClient [ qt5.wrapQtAppsHook ];
|
||||
|
||||
buildInputs = [ lua5_3 zlib bzip2 curl xz gettext libiconv ]
|
||||
++ optionals sdlClient [ SDL SDL_mixer SDL_image SDL_ttf SDL_gfx freetype fluidsynth ]
|
||||
++ optionals gtkClient [ gtk3 ]
|
||||
++ optionals qtClient [ qt5.qtbase ]
|
||||
++ optional server readline
|
||||
++ optional enableSqlite sqlite;
|
||||
++ lib.optionals sdlClient [ SDL SDL_mixer SDL_image SDL_ttf SDL_gfx freetype fluidsynth ]
|
||||
++ lib.optionals gtkClient [ gtk3 ]
|
||||
++ lib.optionals qtClient [ qt5.qtbase ]
|
||||
++ lib.optional server readline
|
||||
++ lib.optional enableSqlite sqlite;
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
configureFlags = [ "--enable-shared" ]
|
||||
++ optional sdlClient "--enable-client=sdl"
|
||||
++ optionals qtClient [
|
||||
++ lib.optional sdlClient "--enable-client=sdl"
|
||||
++ lib.optionals qtClient [
|
||||
"--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";
|
||||
] ++ lib.optionals gtkClient [ "--enable-client=gtk3.22" ]
|
||||
++ lib.optional enableSqlite "--enable-fcdb=sqlite3"
|
||||
++ lib.optional (!gtkClient) "--enable-fcmp=cli"
|
||||
++ lib.optional (!server) "--disable-server";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Multiplayer (or single player), turn-based strategy game";
|
||||
|
||||
longDescription = ''
|
||||
Freeciv is a Free and Open Source empire-building strategy game
|
||||
inspired by the history of human civilization. The game commences in
|
||||
prehistory and your mission is to lead your tribe from the stone age
|
||||
to the space age...
|
||||
'';
|
||||
|
||||
homepage = "http://www.freeciv.org"; # http only
|
||||
license = licenses.gpl2;
|
||||
|
||||
maintainers = with maintainers; [ pierron ];
|
||||
platforms = platforms.unix;
|
||||
hydraPlatforms = platforms.linux; # sdl-config times out on darwin
|
||||
|
|
Loading…
Reference in a new issue