freeciv: 2.4.0 -> 2.5.0
This commit is contained in:
parent
372e5a7dcf
commit
256c4996c4
@ -1,32 +1,38 @@
|
|||||||
{ stdenv, fetchurl, zlib, bzip2, pkgconfig, curl, lzma, gettext
|
{ stdenv, fetchurl, zlib, bzip2, pkgconfig, curl, lzma, gettext
|
||||||
, sdlClient ? true, SDL, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx, freetype
|
, sdlClient ? true, SDL, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx, freetype, fluidsynth
|
||||||
, gtkClient ? false, gtk
|
, gtkClient ? false, gtk
|
||||||
, server ? true, readline }:
|
, server ? true, readline }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (stdenv.lib) optional optionals;
|
inherit (stdenv.lib) optional optionals;
|
||||||
client = sdlClient || gtkClient;
|
|
||||||
|
|
||||||
sdlName = if sdlClient then "-sdl" else "";
|
sdlName = if sdlClient then "-sdl" else "";
|
||||||
gtkName = if gtkClient then "-gtk" else "";
|
gtkName = if gtkClient then "-gtk" else "";
|
||||||
|
|
||||||
baseName = "freeciv-2.4.0";
|
baseName = "freeciv-2.5.0";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = baseName + sdlName + gtkName;
|
name = baseName + sdlName + gtkName;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/freeciv/${baseName}.tar.bz2";
|
url = "mirror://sourceforge/freeciv/${baseName}.tar.bz2";
|
||||||
sha256 = "1bc01pyihsrby6w95n49gi90ggp40dyxsy4kmlmwcakxfxprwakv";
|
sha256 = "bd9f7523ea79b8d2806d0c1844a9f48506ccd18276330580319913c43051210b";
|
||||||
|
# sha1 = "477b60e02606e47b31a019b065353c1a6da6c305";
|
||||||
|
# md5 = "8a61ecd986853200326711446c573f1b";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
buildInputs = [ zlib bzip2 curl lzma gettext ]
|
buildInputs = [ zlib bzip2 curl lzma gettext ]
|
||||||
++ optionals sdlClient [ SDL SDL_mixer SDL_image SDL_ttf SDL_gfx freetype ]
|
++ optionals sdlClient [ SDL SDL_mixer SDL_image SDL_ttf SDL_gfx freetype fluidsynth ]
|
||||||
++ optional gtkClient gtk
|
++ optionals gtkClient [ gtk ]
|
||||||
++ optional server readline;
|
++ optional server readline;
|
||||||
|
|
||||||
|
configureFlags = []
|
||||||
|
++ optional sdlClient "--enable-client=sdl"
|
||||||
|
++ optional (!gtkClient) "--enable-fcmp=cli"
|
||||||
|
++ optional (!server) "--disable-server";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Multiplayer (or single player), turn-based strategy game";
|
description = "Multiplayer (or single player), turn-based strategy game";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user