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
42
pkgs/games/neverball/default.nix
Normal file
42
pkgs/games/neverball/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenv, fetchurl, SDL2, libGL, libpng, libjpeg, SDL2_ttf, libvorbis, gettext
|
||||
, physfs }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "neverball";
|
||||
version = "1.6.0";
|
||||
src = fetchurl {
|
||||
url = "https://neverball.org/neverball-${version}.tar.gz";
|
||||
sha256 = "184gm36c6p6vaa6gwrfzmfh86klhnb03pl40ahsjsvprlk667zkk";
|
||||
};
|
||||
|
||||
buildInputs = [ libpng SDL2 libGL libjpeg SDL2_ttf libvorbis gettext physfs ];
|
||||
|
||||
dontPatchELF = true;
|
||||
|
||||
patchPhase = ''
|
||||
sed -i -e 's@\./data@'$out/share/neverball/data@ share/base_config.h Makefile
|
||||
sed -i -e 's@\./locale@'$out/share/neverball/locale@ share/base_config.h Makefile
|
||||
sed -i -e 's@-lvorbisfile@-lvorbisfile -lX11 -lgcc_s@' Makefile
|
||||
'';
|
||||
|
||||
# The map generation code requires a writable HOME
|
||||
preConfigure = "export HOME=$TMPDIR";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share/neverball
|
||||
cp -R data locale $out/share/neverball
|
||||
cp neverball $out/bin
|
||||
cp neverputt $out/bin
|
||||
cp mapc $out/bin
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
homepage = "https://neverball.org/";
|
||||
description = "Tilt the floor to roll a ball";
|
||||
license = "GPL";
|
||||
maintainers = with lib.maintainers; [viric];
|
||||
platforms = with lib.platforms; linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue