2022-09-09 14:08:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, boost
|
|
|
|
, curl
|
|
|
|
, SDL2
|
|
|
|
, SDL2_image
|
|
|
|
, libSM
|
|
|
|
, libXext
|
|
|
|
, libpng
|
|
|
|
, freetype
|
|
|
|
, libGLU
|
|
|
|
, libGL
|
|
|
|
, glew
|
|
|
|
, glm
|
|
|
|
, openal
|
|
|
|
, libogg
|
|
|
|
, libvorbis
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "supertux";
|
2022-01-25 03:21:06 +00:00
|
|
|
version = "0.6.3";
|
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";
|
2022-01-25 03:21:06 +00:00
|
|
|
sha256 = "1xkr3ka2sxp5s0spp84iv294i29s1vxqzazb6kmjc0n415h0x57p";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
curl
|
|
|
|
SDL2
|
|
|
|
SDL2_image
|
|
|
|
libSM
|
|
|
|
libXext
|
|
|
|
libpng
|
|
|
|
freetype
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
glew
|
|
|
|
glm
|
|
|
|
openal
|
|
|
|
libogg
|
|
|
|
libvorbis
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|