nixpkgs/pkgs/games/xmoto/default.nix
2019-11-18 20:10:43 +00:00

30 lines
887 B
Nix

{ stdenv, fetchurl, chipmunk, sqlite, curl, zlib, bzip2, libjpeg
, 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
freeglut libGLU libGL SDL SDL_mixer SDL_image SDL_net SDL_ttf
lua5 ode libxdg_basedir libxml2
];
CXXFLAGS = [ "-fpermissive" ];
meta = with stdenv.lib; {
description = "Obstacled race game";
homepage = http://xmoto.tuxfamily.org;
maintainers = with maintainers; [ raskin pSub ];
platforms = platforms.linux;
license = licenses.gpl2;
};
}