2019-06-16 21:59:06 +02:00
|
|
|
{ stdenv, fetchFromGitHub, fetchsvn, cmake, pkgconfig
|
2019-11-10 17:44:34 +01:00
|
|
|
, openal, freealut, libGLU, libGL, libvorbis, libogg, gettext, curl, freetype
|
2020-03-16 17:09:11 +01:00
|
|
|
, fribidi, libtool, bluez, libjpeg, libpng, zlib, libX11, libXrandr, enet, harfbuzz }:
|
2008-10-12 16:28:51 +02:00
|
|
|
|
2017-01-21 07:15:00 +01:00
|
|
|
let
|
|
|
|
dir = "stk-code";
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-04-21 18:56:28 +02:00
|
|
|
pname = "supertuxkart";
|
2020-03-16 17:09:11 +01:00
|
|
|
version = "1.1";
|
2018-01-19 16:05:41 +01:00
|
|
|
|
2015-05-17 04:02:43 +02:00
|
|
|
srcs = [
|
2017-01-21 07:15:00 +01:00
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "supertuxkart";
|
|
|
|
repo = "stk-code";
|
|
|
|
rev = version;
|
2020-03-16 17:09:11 +01:00
|
|
|
sha256 = "01vxxl94583ixswzmi4caz8dk64r56pn3zxh7v63zml60yfvxbvp";
|
2017-01-21 07:15:00 +01:00
|
|
|
name = dir;
|
2015-05-17 04:02:43 +02:00
|
|
|
})
|
|
|
|
(fetchsvn {
|
2017-01-21 07:15:00 +01:00
|
|
|
url = "https://svn.code.sf.net/p/supertuxkart/code/stk-assets";
|
2019-04-21 18:56:28 +02:00
|
|
|
rev = "18212";
|
|
|
|
sha256 = "1dyj8r5rfifhnhayga8w8irkpa99vw57xjmy74cp8xz8g7zvdzqf";
|
2017-01-21 07:15:00 +01:00
|
|
|
name = "stk-assets";
|
2015-05-17 04:02:43 +02:00
|
|
|
})
|
|
|
|
];
|
2017-01-21 07:15:00 +01:00
|
|
|
|
2018-01-19 16:05:41 +01:00
|
|
|
nativeBuildInputs = [ cmake gettext libtool pkgconfig ];
|
|
|
|
|
2008-10-12 16:28:51 +02:00
|
|
|
buildInputs = [
|
2017-01-21 07:15:00 +01:00
|
|
|
libX11 libXrandr
|
2019-11-10 17:44:34 +01:00
|
|
|
openal freealut libGLU libGL libvorbis libogg zlib freetype
|
2020-03-16 17:09:11 +01:00
|
|
|
curl fribidi bluez libjpeg libpng enet harfbuzz
|
2019-03-06 21:22:55 +01:00
|
|
|
];
|
|
|
|
|
2013-01-10 20:55:46 +01:00
|
|
|
enableParallelBuilding = true;
|
2012-02-19 14:15:50 +01:00
|
|
|
|
2018-01-19 16:05:41 +01: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 07:15:00 +01:00
|
|
|
sourceRoot = dir;
|
2009-04-14 23:01:29 +02:00
|
|
|
|
2017-01-21 07:15:00 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-30 17:05:14 +02:00
|
|
|
description = "A Free 3D kart racing game";
|
2008-10-12 16:28:51 +02: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 07:15:00 +01:00
|
|
|
homepage = https://supertuxkart.net/;
|
|
|
|
license = licenses.gpl2Plus;
|
2019-12-05 08:29:48 +01:00
|
|
|
maintainers = with maintainers; [ pyrolagus peterhoeg ];
|
2017-01-21 07:15:00 +01:00
|
|
|
platforms = with platforms; linux;
|
2008-10-12 16:28:51 +02:00
|
|
|
};
|
|
|
|
}
|