2013-01-10 19:55:46 +00:00
|
|
|
{ fetchurl, cmake, stdenv, plib, SDL, openal, freealut, mesa
|
|
|
|
, libvorbis, libogg, gettext, libXxf86vm, curl, pkgconfig
|
2014-08-27 15:53:12 +01:00
|
|
|
, fribidi, autoconf, automake, libtool, bluez }:
|
2008-10-12 15:28:51 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-08-27 15:53:12 +01:00
|
|
|
version = "0.8.1";
|
|
|
|
name = "supertuxkart-${version}";
|
2008-10-12 15:28:51 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-11-23 23:12:27 +00:00
|
|
|
url = "mirror://sourceforge/supertuxkart/${name}-src.tar.bz2";
|
2014-08-27 15:53:12 +01:00
|
|
|
sha256 = "1mpqmi62a2kl6n58mw11fj0dr5xiwmjkqnfmd2z7ghdhc6p02lrk";
|
2008-10-12 15:28:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2013-01-10 19:55:46 +00:00
|
|
|
plib SDL openal freealut mesa libvorbis libogg gettext
|
2014-08-27 15:53:12 +01:00
|
|
|
libXxf86vm curl pkgconfig fribidi autoconf automake libtool cmake bluez
|
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
|
|
|
|
2013-01-10 19:55:46 +00:00
|
|
|
preConfigure = ''
|
|
|
|
echo Building internal Irrlicht
|
|
|
|
cd lib/irrlicht/source/Irrlicht/
|
2014-03-23 21:26:08 +00:00
|
|
|
cp "${mesa}"/include/GL/{gl,glx,wgl}ext.h .
|
2013-01-10 19:55:46 +00:00
|
|
|
NDEBUG=1 make ''${enableParallelBuilding:+-j''${NIX_BUILD_CORES} -l''${NIX_BUILD_CORES}}
|
|
|
|
cd -
|
2009-04-14 22:01:29 +01:00
|
|
|
'';
|
|
|
|
|
2008-10-12 15:28:51 +01:00
|
|
|
meta = {
|
|
|
|
description = "SuperTuxKart is a Free 3D kart racing game";
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
homepage = http://supertuxkart.sourceforge.net/;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2014-08-27 15:53:12 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2008-10-12 15:28:51 +01:00
|
|
|
};
|
|
|
|
}
|