2009-11-06 20:25:45 +01:00
|
|
|
{stdenv, fetchurl, SDL, mesa, libpng, libjpeg, SDL_ttf, libvorbis, gettext,
|
|
|
|
physfs} :
|
2009-03-04 18:28:25 +01:00
|
|
|
|
2009-11-06 20:25:45 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "neverball-1.5.4";
|
2009-03-04 18:28:25 +01:00
|
|
|
src = fetchurl {
|
2009-11-06 20:25:45 +01:00
|
|
|
url = "http://neverball.org/${name}.tar.gz";
|
|
|
|
sha256 = "19hdgdmv20y56xvbj4vk0zdmyaa8kv7df85advkchw7cdsgwlcga";
|
2009-03-04 18:28:25 +01:00
|
|
|
};
|
|
|
|
|
2009-11-06 20:25:45 +01:00
|
|
|
buildInputs = [ SDL mesa libpng libjpeg SDL_ttf libvorbis gettext physfs];
|
2009-03-04 18:28:25 +01:00
|
|
|
|
|
|
|
dontPatchElf = true;
|
|
|
|
|
|
|
|
patchPhase = ''
|
2009-11-06 20:25:54 +01:00
|
|
|
sed -i -e 's@\./data@'$out/data@ share/base_config.h Makefile
|
|
|
|
sed -i -e 's@\./locale@'$out/locale@ share/base_config.h Makefile
|
2009-04-14 23:01:23 +02:00
|
|
|
sed -i -e 's@-lvorbisfile@-lvorbisfile -lX11 -lgcc_s@' Makefile
|
2009-03-04 18:28:25 +01:00
|
|
|
'';
|
|
|
|
|
2009-11-08 23:35:19 +01:00
|
|
|
# The map generation code requires a writable HOME
|
|
|
|
preConfigure = "export HOME=$TMPDIR";
|
|
|
|
|
2009-03-04 18:28:25 +01:00
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin $out
|
2009-03-04 18:28:25 +01:00
|
|
|
cp -R data locale $out
|
|
|
|
cp neverball $out/bin
|
|
|
|
cp neverputt $out/bin
|
|
|
|
cp mapc $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://neverball.org/;
|
|
|
|
description = "Tilt the floor to roll a ball";
|
|
|
|
license = "GPL";
|
2011-03-15 17:52:06 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-03-04 18:28:25 +01:00
|
|
|
};
|
|
|
|
}
|