2015-05-28 15:22:56 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, SDL2, SDL2_image, SDL2_mixer
|
|
|
|
, curl, gettext, libogg, libvorbis, mesa, openal, physfs, boost, glew
|
|
|
|
, libiconv }:
|
2010-05-17 09:21:42 +00:00
|
|
|
|
2015-05-28 15:22:56 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2010-05-17 09:21:42 +00:00
|
|
|
name = "supertux-${version}";
|
2015-05-28 15:22:56 +00:00
|
|
|
version = "0.3.5a";
|
2010-05-17 09:21:42 +00:00
|
|
|
|
2015-05-28 15:22:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SuperTux";
|
|
|
|
repo = "supertux";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0f522wsv0gx7v1h70x8xznklaqr5bm2l9h7ls9vjywy0z4iy1ahp";
|
2010-05-17 09:21:42 +00:00
|
|
|
};
|
|
|
|
|
2015-05-28 15:22:56 +00:00
|
|
|
buildInputs = [ pkgconfig cmake SDL2 SDL2_image SDL2_mixer curl gettext
|
|
|
|
libogg libvorbis mesa openal physfs boost glew libiconv ];
|
2010-05-17 09:21:42 +00:00
|
|
|
|
2015-05-28 15:22:56 +00:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs configure
|
|
|
|
'';
|
2010-05-17 09:21:42 +00:00
|
|
|
|
2015-05-28 15:22:56 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir $out/bin
|
|
|
|
ln -s $out/games/supertux2 $out/bin
|
|
|
|
'';
|
2010-05-17 09:21:42 +00:00
|
|
|
|
2015-05-28 15:22:56 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Classic 2D jump'n run sidescroller game";
|
|
|
|
homepage = http://supertux.github.io/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2010-05-17 09:21:42 +00:00
|
|
|
};
|
|
|
|
}
|