2015-05-02 23:13:26 +02:00
|
|
|
{ stdenv, fetchurl, chipmunk, sqlite, curl, zlib, bzip2, libjpeg
|
2019-11-10 17:44:34 +01:00
|
|
|
, libpng, freeglut, libGLU, libGL, SDL, SDL_mixer, SDL_image, SDL_net
|
2015-05-02 23:13:26 +02:00
|
|
|
, SDL_ttf, lua5, ode, libxdg_basedir, libxml2 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "xmoto";
|
2015-05-02 23:13:26 +02:00
|
|
|
version = "0.5.11";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://download.tuxfamily.org/xmoto/xmoto/${version}/xmoto-${version}-src.tar.gz";
|
2015-05-02 23:13:26 +02:00
|
|
|
sha256 = "1ci6r8zd0l7z28cy92ddf9dmqbdqwinz2y1cny34c61b57wsd155";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2008-11-30 18:15:29 +01:00
|
|
|
chipmunk sqlite curl zlib bzip2 libjpeg libpng
|
2019-11-10 17:44:34 +01:00
|
|
|
freeglut libGLU libGL SDL SDL_mixer SDL_image SDL_net SDL_ttf
|
2012-01-09 00:31:31 +01:00
|
|
|
lua5 ode libxdg_basedir libxml2
|
2008-11-30 18:15:29 +01:00
|
|
|
];
|
2012-01-09 00:31:31 +01:00
|
|
|
|
2020-04-14 10:00:12 +02:00
|
|
|
CXXFLAGS = [
|
|
|
|
"-fpermissive"
|
|
|
|
# Build using the old C++ ABI to fix issue with missing text; the issue
|
|
|
|
# should be fixed in the next stable release (if that ever does happen)
|
|
|
|
"-D_GLIBCXX_USE_CXX11_ABI=0"
|
|
|
|
];
|
2018-03-02 07:35:18 +01:00
|
|
|
|
2015-05-02 23:13:26 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Obstacled race game";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://xmoto.tuxfamily.org";
|
2018-07-22 21:50:19 +02:00
|
|
|
maintainers = with maintainers; [ raskin pSub ];
|
2015-05-02 23:13:26 +02:00
|
|
|
platforms = platforms.linux;
|
2018-07-22 17:08:30 +02:00
|
|
|
license = licenses.gpl2;
|
2008-11-30 18:15:29 +01:00
|
|
|
};
|
|
|
|
}
|