2021-07-20 00:15:14 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, gettext, makeWrapper, bzip2
|
|
|
|
, curl, libjpeg, libxml2, xz, lua, ode, libGL, libpng, SDL, SDL_mixer, SDL_net
|
|
|
|
, SDL_ttf, sqlite, libxdg_basedir, zlib }:
|
2015-05-02 23:13:26 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "xmoto";
|
2021-07-20 00:15:14 +02:00
|
|
|
version = "0.6.1";
|
2015-05-02 23:13:26 +02:00
|
|
|
|
2021-07-20 00:15:14 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n";
|
2015-05-02 23:13:26 +02:00
|
|
|
};
|
|
|
|
|
2021-07-20 00:15:14 +02:00
|
|
|
patches = [
|
|
|
|
# Fix build with Nix
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/xmoto/xmoto/commit/536dcc7ec77a4c4c454b86220e85b1cb3cd1c7f7.patch";
|
|
|
|
sha256 = "0h9lld668jrbmrqva89zqwp63jiagjj86prkxzx6372p3kk9y7g7";
|
|
|
|
})
|
2008-11-30 18:15:29 +01:00
|
|
|
];
|
2012-01-09 00:31:31 +01:00
|
|
|
|
2021-07-20 00:15:14 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
gettext
|
|
|
|
makeWrapper
|
2020-04-14 10:00:12 +02:00
|
|
|
];
|
2018-03-02 07:35:18 +01:00
|
|
|
|
2021-07-20 00:15:14 +02:00
|
|
|
buildInputs = [
|
|
|
|
bzip2
|
|
|
|
curl
|
|
|
|
libjpeg
|
|
|
|
libxml2
|
|
|
|
xz
|
|
|
|
lua
|
|
|
|
ode
|
|
|
|
libGL
|
|
|
|
libpng
|
|
|
|
SDL
|
|
|
|
SDL_mixer
|
|
|
|
SDL_net
|
|
|
|
SDL_ttf
|
|
|
|
sqlite
|
|
|
|
libxdg_basedir
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/bin/xmoto" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$out/share/"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-07-20 00:15:14 +02:00
|
|
|
description = "A challenging 2D motocross platform game, where physics play an important role";
|
|
|
|
longDescription = ''
|
|
|
|
X-Moto is a challenging 2D motocross platform game, where physics plays an all important role in the gameplay.
|
|
|
|
You need to control your bike to its limits, if you want to have a chance to finish the most difficult challenges.
|
|
|
|
'';
|
2022-01-03 16:53:12 +01:00
|
|
|
homepage = "https://xmoto.tuxfamily.org";
|
2018-07-22 21:50:19 +02:00
|
|
|
maintainers = with maintainers; [ raskin pSub ];
|
2021-07-20 00:15:14 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl2Plus;
|
2008-11-30 18:15:29 +01:00
|
|
|
};
|
|
|
|
}
|