2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, pkgconfig, SDL2, SDL2_image , curl
|
2020-04-24 23:36:52 +00:00
|
|
|
, libogg, libvorbis, libGLU, libGL, openal, boost, glew
|
|
|
|
, libpng, freetype
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "supertux";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "0.6.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/SuperTux/supertux/releases/download/v${version}/SuperTux-v${version}-Source.tar.gz";
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ SDL2 SDL2_image curl libogg libvorbis libGLU libGL openal boost glew
|
|
|
|
libpng freetype
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DENABLE_BOOST_STATIC_LIBS=OFF" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir $out/bin
|
|
|
|
ln -s $out/games/supertux2 $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Classic 2D jump'n run sidescroller game";
|
|
|
|
homepage = "http://supertux.github.io/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|