3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/xmoto/default.nix

35 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, chipmunk, sqlite, curl, zlib, bzip2, libjpeg
2019-11-10 16:44:34 +00:00
, libpng, freeglut, libGLU, libGL, SDL, SDL_mixer, SDL_image, SDL_net
, SDL_ttf, lua5, ode, libxdg_basedir, libxml2 }:
stdenv.mkDerivation rec {
pname = "xmoto";
version = "0.5.11";
src = fetchurl {
url = "https://download.tuxfamily.org/xmoto/xmoto/${version}/xmoto-${version}-src.tar.gz";
sha256 = "1ci6r8zd0l7z28cy92ddf9dmqbdqwinz2y1cny34c61b57wsd155";
};
buildInputs = [
chipmunk sqlite curl zlib bzip2 libjpeg libpng
2019-11-10 16:44:34 +00:00
freeglut libGLU libGL SDL SDL_mixer SDL_image SDL_net SDL_ttf
lua5 ode libxdg_basedir libxml2
];
2020-04-14 09:00:12 +01: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 06:35:18 +00:00
meta = with lib; {
description = "Obstacled race game";
homepage = "http://xmoto.tuxfamily.org";
maintainers = with maintainers; [ raskin pSub ];
platforms = platforms.linux;
2018-07-22 16:08:30 +01:00
license = licenses.gpl2;
};
}