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 15:28:51 +01:00
|
|
|
|
2017-01-21 06:15:00 +00:00
|
|
|
let
|
|
|
|
dir = "stk-code";
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2014-08-27 15:53:12 +01:00
|
|
|
name = "supertuxkart-${version}";
|
2008-10-12 15:28:51 +01:00
|
|
|
|
2017-01-21 06:15:00 +00:00
|
|
|
version = "0.9.2";
|
2015-05-17 03:02:43 +01: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 03:02:43 +01: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 03:02:43 +01:00
|
|
|
})
|
|
|
|
];
|
2017-01-21 06:15:00 +00:00
|
|
|
|
2017-09-14 20:24:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2008-10-12 15:28:51 +01:00
|
|
|
buildInputs = [
|
2017-09-14 20:24:37 +01:00
|
|
|
cmake libtool
|
2017-01-21 06:15:00 +00:00
|
|
|
libX11 libXrandr
|
|
|
|
openal freealut mesa libvorbis libogg gettext zlib freetype
|
|
|
|
curl fribidi bluez libjpeg libpng
|
2008-10-12 15:28:51 +01: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 22:01:29 +01:00
|
|
|
|
2017-01-21 06:15:00 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-30 16:05:14 +01:00
|
|
|
description = "A Free 3D kart racing game";
|
2008-10-12 15:28:51 +01: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 15:28:51 +01:00
|
|
|
};
|
|
|
|
}
|