1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00
nixpkgs/pkgs/games/teetertorture/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
966 B
Nix
Raw Normal View History

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