nixpkgs/pkgs/games/super-tux/default.nix

35 lines
919 B
Nix
Raw Normal View History

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 }:
2015-05-28 15:22:56 +00:00
stdenv.mkDerivation rec {
name = "supertux-${version}";
2015-05-28 15:22:56 +00:00
version = "0.3.5a";
2015-05-28 15:22:56 +00:00
src = fetchFromGitHub {
owner = "SuperTux";
repo = "supertux";
rev = "v${version}";
sha256 = "0f522wsv0gx7v1h70x8xznklaqr5bm2l9h7ls9vjywy0z4iy1ahp";
};
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 ];
2015-05-28 15:22:56 +00:00
preConfigure = ''
patchShebangs configure
'';
2015-05-28 15:22:56 +00:00
postInstall = ''
mkdir $out/bin
ln -s $out/games/supertux2 $out/bin
'';
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 ];
};
}