2012-11-30 19:59:26 +01:00
|
|
|
{stdenv, fetchurl
|
|
|
|
, zlib, jam, pkgconfig, gettext, libxml2, libxslt, xproto, libX11, mesa, SDL
|
|
|
|
, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx, physfs
|
|
|
|
}:
|
|
|
|
let s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="lincity";
|
|
|
|
version="2.0";
|
|
|
|
name="lincity-2.0";
|
2012-12-04 14:08:53 +01:00
|
|
|
hash="01k6n304qj0z5zmqr49gqirp0jmx2b0cpisgkxk1ga67vyjhdcm6";
|
2014-05-18 13:25:43 +02:00
|
|
|
url="http://pkgs.fedoraproject.org/repo/pkgs/lincity-ng/lincity-ng-2.0.tar.bz2"
|
|
|
|
+ "/1bd0f58e0f2b131d70044f4230600ed1/lincity-ng-2.0.tar.bz2";
|
|
|
|
# berlios shut down; I found no better mirror
|
2012-12-04 14:08:53 +01:00
|
|
|
sha256="01k6n304qj0z5zmqr49gqirp0jmx2b0cpisgkxk1ga67vyjhdcm6";
|
2012-11-30 19:59:26 +01:00
|
|
|
};
|
|
|
|
buildInputs = [zlib jam pkgconfig gettext libxml2 libxslt xproto libX11 mesa
|
|
|
|
SDL SDL_mixer SDL_image SDL_ttf SDL_gfx physfs];
|
2016-02-12 16:59:08 +01:00
|
|
|
in
|
2012-11-30 19:59:26 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit (s) name version;
|
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-12 16:59:08 +01:00
|
|
|
|
2012-11-30 19:59:26 +01:00
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
buildPhase = "jam";
|
|
|
|
installPhase="jam install";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
documentation = ''City building game'';
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
inherit (s) version;
|
|
|
|
};
|
|
|
|
}
|