blob: 0006f895809b62ae8ad1d8e1cb3e9870a00b22cb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ stdenv, fetchurl, SDL2, mesa_noglu, libpng, libjpeg, SDL2_ttf, libvorbis, gettext
, physfs }:
stdenv.mkDerivation rec {
name = "neverball-1.6.0";
src = fetchurl {
url = "http://neverball.org/${name}.tar.gz";
sha256 = "184gm36c6p6vaa6gwrfzmfh86klhnb03pl40ahsjsvprlk667zkk";
};
buildInputs = [ libpng SDL2 mesa_noglu libjpeg SDL2_ttf libvorbis gettext physfs ];
dontPatchElf = true;
patchPhase = ''
sed -i -e 's@\./data@'$out/share/neverball/data@ share/base_config.h Makefile
sed -i -e 's@\./locale@'$out/share/neverball/locale@ share/base_config.h Makefile
sed -i -e 's@-lvorbisfile@-lvorbisfile -lX11 -lgcc_s@' Makefile
'';
# The map generation code requires a writable HOME
preConfigure = "export HOME=$TMPDIR";
installPhase = ''
mkdir -p $out/bin $out/share/neverball
cp -R data locale $out/share/neverball
cp neverball $out/bin
cp neverputt $out/bin
cp mapc $out/bin
'';
enableParallelBuilding = true;
meta = {
homepage = http://neverball.org/;
description = "Tilt the floor to roll a ball";
license = "GPL";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}
|