uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
33
pkgs/games/teetertorture/default.nix
Normal file
33
pkgs/games/teetertorture/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ lib, stdenv, fetchurl, SDL, SDL_image, SDL_mixer }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "teeter-torture";
|
||||
version = "2005-10-18";
|
||||
src = fetchurl {
|
||||
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";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue