tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
xmoto: 0.5.11 -> 0.6.1
Ben Wolsieffer
4 years ago
a6470c3c
0ea33355
+50
-19
1 changed file
expand all
collapse all
unified
split
pkgs
games
xmoto
default.nix
+50
-19
pkgs/games/xmoto/default.nix
···
1
1
-
{ lib, stdenv, fetchurl, chipmunk, sqlite, curl, zlib, bzip2, libjpeg
2
2
-
, libpng, freeglut, libGLU, libGL, SDL, SDL_mixer, SDL_image, SDL_net
3
3
-
, SDL_ttf, lua5, ode, libxdg_basedir, libxml2 }:
1
1
+
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, gettext, makeWrapper, bzip2
2
2
+
, curl, libjpeg, libxml2, xz, lua, ode, libGL, libpng, SDL, SDL_mixer, SDL_net
3
3
+
, SDL_ttf, sqlite, libxdg_basedir, zlib }:
4
4
5
5
stdenv.mkDerivation rec {
6
6
pname = "xmoto";
7
7
-
version = "0.5.11";
7
7
+
version = "0.6.1";
8
8
9
9
-
src = fetchurl {
10
10
-
url = "https://download.tuxfamily.org/xmoto/xmoto/${version}/xmoto-${version}-src.tar.gz";
11
11
-
sha256 = "1ci6r8zd0l7z28cy92ddf9dmqbdqwinz2y1cny34c61b57wsd155";
9
9
+
src = fetchFromGitHub {
10
10
+
owner = pname;
11
11
+
repo = pname;
12
12
+
rev = version;
13
13
+
sha256 = "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n";
12
14
};
13
15
16
16
+
patches = [
17
17
+
# Fix build with Nix
18
18
+
(fetchpatch {
19
19
+
url = "https://github.com/xmoto/xmoto/commit/536dcc7ec77a4c4c454b86220e85b1cb3cd1c7f7.patch";
20
20
+
sha256 = "0h9lld668jrbmrqva89zqwp63jiagjj86prkxzx6372p3kk9y7g7";
21
21
+
})
22
22
+
];
23
23
+
24
24
+
nativeBuildInputs = [
25
25
+
cmake
26
26
+
gettext
27
27
+
makeWrapper
28
28
+
];
29
29
+
14
30
buildInputs = [
15
15
-
chipmunk sqlite curl zlib bzip2 libjpeg libpng
16
16
-
freeglut libGLU libGL SDL SDL_mixer SDL_image SDL_net SDL_ttf
17
17
-
lua5 ode libxdg_basedir libxml2
31
31
+
bzip2
32
32
+
curl
33
33
+
libjpeg
34
34
+
libxml2
35
35
+
xz
36
36
+
lua
37
37
+
ode
38
38
+
libGL
39
39
+
libpng
40
40
+
SDL
41
41
+
SDL_mixer
42
42
+
SDL_net
43
43
+
SDL_ttf
44
44
+
sqlite
45
45
+
libxdg_basedir
46
46
+
zlib
18
47
];
19
48
20
20
-
CXXFLAGS = [
21
21
-
"-fpermissive"
22
22
-
# Build using the old C++ ABI to fix issue with missing text; the issue
23
23
-
# should be fixed in the next stable release (if that ever does happen)
24
24
-
"-D_GLIBCXX_USE_CXX11_ABI=0"
25
25
-
];
49
49
+
preFixup = ''
50
50
+
wrapProgram "$out/bin/xmoto" \
51
51
+
--prefix XDG_DATA_DIRS : "$out/share/"
52
52
+
'';
26
53
27
54
meta = with lib; {
28
28
-
description = "Obstacled race game";
55
55
+
description = "A challenging 2D motocross platform game, where physics play an important role";
56
56
+
longDescription = ''
57
57
+
X-Moto is a challenging 2D motocross platform game, where physics plays an all important role in the gameplay.
58
58
+
You need to control your bike to its limits, if you want to have a chance to finish the most difficult challenges.
59
59
+
'';
29
60
homepage = "http://xmoto.tuxfamily.org";
30
61
maintainers = with maintainers; [ raskin pSub ];
31
31
-
platforms = platforms.linux;
32
32
-
license = licenses.gpl2;
62
62
+
platforms = platforms.all;
63
63
+
license = licenses.gpl2Plus;
33
64
};
34
65
}