2011-06-20 02:25:52 +04:00
|
|
|
{stdenv, fetchurl, SDL, SDL_image, SDL_mixer}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "teeter-torture-20051018";
|
|
|
|
src = fetchurl {
|
|
|
|
url = ftp://ftp.tuxpaint.org/unix/x/teetertorture/source/teetertorture-2005-10-18.tar.gz;
|
|
|
|
sha256 = "175gdbkx3m82icyzvwpyzs4v2fd69c695k5n8ca0lnjv81wnw2hr";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ SDL SDL_image SDL_mixer];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
sed -i s,data/,$out/share/teetertorture/, src/teetertorture.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i '/free(home)/d' src/teetertorture.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p $out/bin $out/share/teetertorture
|
2011-06-20 02:25:52 +04:00
|
|
|
cp teetertorture $out/bin
|
|
|
|
cp -R data/* $out/share/teetertorture
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2011-06-20 13:11:54 +04:00
|
|
|
homepage = http://www.newbreedsoftware.com/teetertorture/;
|
2011-06-20 02:25:52 +04:00
|
|
|
description = "Simple shooting game with your cannon is sitting atop a teeter totter";
|
2014-06-19 08:19:00 +04:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2011-06-20 02:25:52 +04:00
|
|
|
};
|
|
|
|
}
|