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
30
pkgs/games/gltron/default.nix
Normal file
30
pkgs/games/gltron/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{lib, stdenv, fetchurl, SDL, libGLU, libGL, zlib, libpng, libvorbis, libmikmod, SDL_sound } :
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gltron";
|
||||
version = "0.70";
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/gltron/gltron-${version}-source.tar.gz";
|
||||
sha256 = "e0c8ebb41a18a1f8d7302a9c2cb466f5b1dd63e9a9966c769075e6b6bdad8bb0";
|
||||
};
|
||||
|
||||
patches = [ ./gentoo-prototypes.patch ];
|
||||
|
||||
postPatch = ''
|
||||
# Fix https://sourceforge.net/p/gltron/bugs/15
|
||||
sed -i /__USE_MISC/d lua/src/lib/liolib.c
|
||||
'';
|
||||
|
||||
# The build fails, unless we disable the default -Wall -Werror
|
||||
configureFlags = [ "--disable-warn" ];
|
||||
|
||||
buildInputs = [ SDL libGLU libGL zlib libpng libvorbis libmikmod SDL_sound ];
|
||||
|
||||
meta = {
|
||||
homepage = "http://www.gltron.org/";
|
||||
description = "Game based on the movie Tron";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
maintainers = with lib.maintainers; [viric];
|
||||
platforms = with lib.platforms; linux;
|
||||
};
|
||||
}
|
||||
27
pkgs/games/gltron/gentoo-prototypes.patch
Normal file
27
pkgs/games/gltron/gentoo-prototypes.patch
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
Taken from:
|
||||
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/games-action/gltron/files/gltron-0.70-prototypes.patch?revision=1.1&view=markup
|
||||
|
||||
scripting.h declares these params as const so make sure they're the same.
|
||||
|
||||
--- a/nebu/scripting/scripting.c
|
||||
+++ b/nebu/scripting/scripting.c
|
||||
@@ -169,16 +169,16 @@
|
||||
return status;
|
||||
}
|
||||
|
||||
-void scripting_RunFile(char *name) {
|
||||
+void scripting_RunFile(const char *name) {
|
||||
lua_dofile(L, name);
|
||||
}
|
||||
|
||||
-void scripting_Run(char *command) {
|
||||
+void scripting_Run(const char *command) {
|
||||
/* fprintf(stderr, "[command] %s\n", command); */
|
||||
lua_dostring(L, command);
|
||||
}
|
||||
|
||||
-void scripting_RunFormat(char *format, ... ) {
|
||||
+void scripting_RunFormat(const char *format, ... ) {
|
||||
char buf[4096];
|
||||
va_list ap;
|
||||
va_start(ap, format);
|
||||
Loading…
Add table
Add a link
Reference in a new issue