2009-03-04 17:28:25 +00:00
|
|
|
{stdenv, fetchurl, SDL, mesa, libpng, libjpeg, SDL_ttf, libvorbis, gettext} :
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-04-14 23:24:52 +01:00
|
|
|
name = "neverball-1.5.1";
|
2009-03-04 17:28:25 +00:00
|
|
|
src = fetchurl {
|
2009-04-14 23:24:52 +01:00
|
|
|
url = http://neverball.org/neverball-1.5.1.tar.gz;
|
|
|
|
sha256 = "0cqi6q829p1wx4471ab74xd7hmcvjg4fvj40rdc3342rvfqpijv5";
|
2009-03-04 17:28:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ SDL mesa libpng libjpeg SDL_ttf libvorbis gettext ];
|
|
|
|
|
|
|
|
dontPatchElf = true;
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e 's@\./data@'$out/data@ share/base_config.h
|
|
|
|
sed -i -e 's@\./locale@'$out/locale@ share/base_config.h
|
2009-04-14 22:01:23 +01:00
|
|
|
sed -i -e 's@-lvorbisfile@-lvorbisfile -lX11 -lgcc_s@' Makefile
|
2009-03-04 17:28:25 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
ensureDir $out/bin $out
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|