summary refs log tree commit diff
path: root/pkgs/games/lincity/ng.nix
blob: 4e886466777e54f39e37f6bc38f7ab5d1de53cae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{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";
    hash="01k6n304qj0z5zmqr49gqirp0jmx2b0cpisgkxk1ga67vyjhdcm6";
    url="http://download.berlios.de/lincity-ng/lincity-ng-2.0.tar.bz2";
    sha256="01k6n304qj0z5zmqr49gqirp0jmx2b0cpisgkxk1ga67vyjhdcm6";
  };
  buildInputs = [zlib jam pkgconfig gettext libxml2 libxslt xproto libX11 mesa 
    SDL SDL_mixer SDL_image SDL_ttf SDL_gfx physfs];
in 
stdenv.mkDerivation rec {
  inherit (s) name version;
  src = fetchurl {
    inherit (s) url sha256;
  };

  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;
  };
}