about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/tennix/default.nix
blob: 56ac0a2faf4e73bb947e38f179e41d0b0322a119 (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
{stdenv, fetchurl, SDL, SDL_mixer, SDL_image, SDL_ttf, SDL_net, python } :

stdenv.mkDerivation rec {
  name = "tennix-1.1";
  src = fetchurl {
    url = "https://icculus.org/tennix/downloads/${name}.tar.gz";
    sha256 = "0np5kw1y7i0z0dsqx4r2nvmq86qj8hv3mmgavm3hxraqnds5z8cm";
  };

  buildInputs = [ python SDL SDL_mixer SDL_image SDL_ttf SDL_net ];

  patches = [ ./fix_FTBFS.patch ];

  preConfigure = ''
    makeFlags="PREFIX=$out"
    installFlags="PREFIX=$out install"
  '';

  meta = with stdenv.lib; {
    homepage = "http://icculus.org/tennix/";
    description = "Classic Championship Tour 2011";
    license = licenses.gpl2Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ pSub ];
  };
}