Adding an attribute for the gtk freeciv too.

This commit is contained in:
Lluís Batlle i Rossell 2013-10-20 18:26:32 +02:00
parent 655ba1e418
commit 8818dbedbf
2 changed files with 13 additions and 3 deletions

View file

@ -6,12 +6,17 @@
let
inherit (stdenv.lib) optional optionals;
client = sdlClient || gtkClient;
sdlName = if sdlClient then "-sdl" else "";
gtkName = if gtkClient then "-gtk" else "";
baseName = "freeciv-2.4.0";
in
stdenv.mkDerivation rec {
name = "freeciv-2.4.0";
stdenv.mkDerivation {
name = baseName + sdlName + gtkName;
src = fetchurl {
url = "mirror://sourceforge/freeciv/${name}.tar.bz2";
url = "mirror://sourceforge/freeciv/${baseName}.tar.bz2";
sha256 = "1bc01pyihsrby6w95n49gi90ggp40dyxsy4kmlmwcakxfxprwakv";
};

View file

@ -9186,6 +9186,11 @@ let
freeciv = callPackage ../games/freeciv { };
freeciv_gtk = callPackage ../games/freeciv {
gtkClient = true;
sdlClient = false;
};
freedink = callPackage ../games/freedink { };
fsg = callPackage ../games/fsg {