summary refs log tree commit diff
path: root/pkgs/games/super-tux/default.nix
blob: 11429cfadd2f29e51ff9644be80a9ba20eea5545 (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
{ stdenv, fetchFromGitHub, cmake, pkgconfig, SDL2, SDL2_image, SDL2_mixer
, curl, gettext, libogg, libvorbis, mesa, openal, physfs, boost, glew
, libiconv }:

stdenv.mkDerivation rec {
  name = "supertux-${version}";
  version = "0.3.5a";

  src = fetchFromGitHub {
    owner = "SuperTux";
    repo = "supertux";
    rev = "v${version}";
    sha256 = "0f522wsv0gx7v1h70x8xznklaqr5bm2l9h7ls9vjywy0z4iy1ahp";
  };

  buildInputs = [ pkgconfig cmake SDL2 SDL2_image SDL2_mixer curl gettext
                  libogg libvorbis mesa openal physfs boost glew libiconv ];

  preConfigure = ''
    patchShebangs configure
  '';

  postInstall = ''
    mkdir $out/bin
    ln -s $out/games/supertux2 $out/bin
  '';

  meta = with stdenv.lib; {
    description = "Classic 2D jump'n run sidescroller game";
    homepage = http://supertux.github.io/;
    license = licenses.gpl2;
    maintainers = with maintainers; [ pSub ];
  };
}