2017-01-21 06:15:00 +00:00
|
|
|
{ stdenv, fetchFromGitHub, fetchsvn, cmake, pkgconfig
|
|
|
|
, openal, freealut, mesa, libvorbis, libogg, gettext, curl, freetype
|
|
|
|
, fribidi, libtool, bluez, libjpeg, libpng, zlib, libX11, libXrandr }:
|
2008-10-12 14:28:51 +00:00
|
|
|
|
2017-01-21 06:15:00 +00:00
|
|
|
let
|
|
|
|
dir = "stk-code";
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2014-08-27 14:53:12 +00:00
|
|
|
name = "supertuxkart-${version}";
|
2008-10-12 14:28:51 +00:00
|
|
|
|
2017-01-21 06:15:00 +00:00
|
|
|
version = "0.9.2";
|
2015-05-17 02:02:43 +00:00
|
|
|
srcs = [
|
2017-01-21 06:15:00 +00:00
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "supertuxkart";
|
|
|
|
repo = "stk-code";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1zsc5nw8il8xwppk624jampfk6qhqzjnni8zicrhqix0xg07nxca";
|
|
|
|
name = dir;
|
2015-05-17 02:02:43 +00:00
|
|
|
})
|
|
|
|
(fetchsvn {
|
2017-01-21 06:15:00 +00:00
|
|
|
url = "https://svn.code.sf.net/p/supertuxkart/code/stk-assets";
|
|
|
|
rev = "16503"; # 0.9.2 crashes with 16937. Refer to stk-code/doc/assets_version
|
|
|
|
sha256 = "0j1dy27gxm4hx26xddr2ak6vw0lim0nqmjnszfb4c61y92j12cqp";
|
|
|
|
name = "stk-assets";
|
2015-05-17 02:02:43 +00:00
|
|
|
})
|
|
|
|
];
|
2017-01-21 06:15:00 +00:00
|
|
|
|
2008-10-12 14:28:51 +00:00
|
|
|
buildInputs = [
|
2017-01-21 06:15:00 +00:00
|
|
|
cmake libtool pkgconfig
|
|
|
|
libX11 libXrandr
|
|
|
|
openal freealut mesa libvorbis libogg gettext zlib freetype
|
|
|
|
curl fribidi bluez libjpeg libpng
|
2008-10-12 14:28:51 +00:00
|
|
|
];
|
|
|
|
|
2013-01-10 19:55:46 +00:00
|
|
|
enableParallelBuilding = true;
|
2012-02-19 13:15:50 +00:00
|
|
|
|
2017-01-21 06:15:00 +00:00
|
|
|
sourceRoot = dir;
|
2009-04-14 21:01:29 +00:00
|
|
|
|
2017-01-21 06:15:00 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-30 15:05:14 +00:00
|
|
|
description = "A Free 3D kart racing game";
|
2008-10-12 14:28:51 +00:00
|
|
|
longDescription = ''
|
|
|
|
SuperTuxKart is a Free 3D kart racing game, with many tracks,
|
|
|
|
characters and items for you to try, similar in spirit to Mario
|
|
|
|
Kart.
|
|
|
|
'';
|
2017-01-21 06:15:00 +00:00
|
|
|
homepage = https://supertuxkart.net/;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ c0dehero fuuzetsu peterhoeg ];
|
|
|
|
platforms = with platforms; linux;
|
2008-10-12 14:28:51 +00:00
|
|
|
};
|
|
|
|
}
|