1 { lib, stdenv, fetchFromGitHub, cmake, gettext, makeWrapper, bzip2
2 , curl, libjpeg, libxml2, xz, lua, ode, libGL, libGLU, libpng
3 , pkg-config, SDL2, SDL2_mixer, SDL2_net , SDL2_ttf
4 , sqlite, libxdg_basedir, zlib }:
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 hash = "sha256-n58GB5HA50ybSq0ssvJMq+p3I3JThHUGLZ5sHy/245M=";
43 # Should normally come from SDL2_ttf pkg-config, but xmoto does not
44 # use it and uses include directories directly. Let's re-inject the
46 env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL2}/include/SDL2";
49 wrapProgram "$out/bin/xmoto" \
50 --prefix XDG_DATA_DIRS : "$out/share/"
54 description = "Challenging 2D motocross platform game, where physics play an important role";
55 mainProgram = "xmoto";
57 X-Moto is a challenging 2D motocross platform game, where physics plays an all important role in the gameplay.
58 You need to control your bike to its limits, if you want to have a chance to finish the most difficult challenges.
60 homepage = "https://xmoto.tuxfamily.org";
61 maintainers = with maintainers; [ raskin pSub ];
62 platforms = platforms.all;
63 license = licenses.gpl2Plus;