summary refs log tree commit diff
path: root/pkgs/games/lincity/ng.nix
blob: 28fd6fe6e501e62049b49a3c943caadb7e24be29 (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
36
37
38
39
40
41
{stdenv, fetchgit
, zlib, jam, pkgconfig, gettext, libxml2, libxslt, xproto, libX11, mesa, SDL
, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx, physfs, autoconf, automake, libtool
}:
stdenv.mkDerivation rec {
  name = "lincity-ng-${version}";
  version = "2.9beta.20170715";

  src = fetchgit {
    url = "https://github.com/lincity-ng/lincity-ng";
    rev = "0c19714b811225238f310633e59f428934185e6b";
    sha256 = "1gaj9fq97zmb0jsdw4rzrw34pimkmkwbfqps0glpqij4w3srz5f3";
  };

  hardeningDisable = [ "format" ];

  nativeBuildInputs = [
    jam autoconf automake libtool pkgconfig
  ];

  buildInputs = [
    zlib gettext libxml2 libxslt xproto libX11 mesa SDL SDL_mixer SDL_image
    SDL_ttf SDL_gfx physfs
  ];

   preConfigure = ''
     ./autogen.sh
   '';

   installPhase = ''
     touch CREDITS
     AR='ar r' jam install
   '';

  meta = {
    description = ''City building game'';
    license = stdenv.lib.licenses.gpl2;
    platforms = stdenv.lib.platforms.linux;
    maintainers = [stdenv.lib.maintainers.raskin];
  };
}