2017-01-21 06:15:00 +00:00
|
|
|
{ stdenv, fetchFromGitHub, fetchsvn, cmake, pkgconfig
|
2018-02-24 13:12:44 +00:00
|
|
|
, openal, freealut, libGLU_combined, libvorbis, libogg, gettext, curl, freetype
|
2017-01-21 06:15:00 +00:00
|
|
|
, 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
|
|
|
|
2018-01-19 15:05:41 +00:00
|
|
|
version = "0.9.3";
|
|
|
|
|
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;
|
2018-01-19 15:05:41 +00:00
|
|
|
sha256 = "1smnanjjaj4yq2ywikv0l6xysh6n2h1cm549plbg5xdk9mx2sfia";
|
2017-01-21 06:15:00 +00:00
|
|
|
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";
|
2018-01-19 15:05:41 +00:00
|
|
|
rev = "17448";
|
|
|
|
sha256 = "0lxbb4k57gv4gj12l5hnvhwdycpzcxjwg7qdfwglj2bdvaxf9f21";
|
2017-01-21 06:15:00 +00:00
|
|
|
name = "stk-assets";
|
2015-05-17 03:02:43 +01:00
|
|
|
})
|
|
|
|
];
|
2017-01-21 06:15:00 +00:00
|
|
|
|
2018-01-19 15:05:41 +00:00
|
|
|
nativeBuildInputs = [ cmake gettext libtool pkgconfig ];
|
|
|
|
|
2008-10-12 15:28:51 +01:00
|
|
|
buildInputs = [
|
2017-01-21 06:15:00 +00:00
|
|
|
libX11 libXrandr
|
2018-02-24 13:12:44 +00:00
|
|
|
openal freealut libGLU_combined libvorbis libogg zlib freetype
|
2017-01-21 06:15:00 +00:00
|
|
|
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
|
|
|
|
2018-01-19 15:05:41 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_RECORDER=OFF" # libopenglrecorder is not in nixpkgs
|
|
|
|
"-DUSE_SYSTEM_ANGELSCRIPT=OFF" # doesn't work with 2.31.2 or 2.32.0
|
|
|
|
];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|