2021-01-15 05:31:39 +01:00
|
|
|
{ lib, stdenv, fetchurl, SDL, SDL_image, SDL_mixer }:
|
2011-06-20 00:25:52 +02:00
|
|
|
|
2021-06-22 23:44:58 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "teeter-torture";
|
|
|
|
version = "2005-10-18";
|
2011-06-20 00:25:52 +02:00
|
|
|
src = fetchurl {
|
2021-06-22 23:44:58 +02:00
|
|
|
url = "ftp://ftp.tuxpaint.org/unix/x/teetertorture/source/teetertorture-${version}.tar.gz";
|
2011-06-20 00:25:52 +02:00
|
|
|
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-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin $out/share/teetertorture
|
2011-06-20 00:25:52 +02:00
|
|
|
cp teetertorture $out/bin
|
|
|
|
cp -R data/* $out/share/teetertorture
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.newbreedsoftware.com/teetertorture/";
|
2011-06-20 00:25:52 +02:00
|
|
|
description = "Simple shooting game with your cannon is sitting atop a teeter totter";
|
2021-01-15 05:31:39 +01:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2011-06-20 00:25:52 +02:00
|
|
|
};
|
|
|
|
}
|