mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 20:02:14 +03:00
Adding gltron.
svn path=/nixpkgs/trunk/; revision=22519
This commit is contained in:
parent
26dc245fb2
commit
6b701731ec
18
pkgs/development/libraries/SDL_sound/default.nix
Normal file
18
pkgs/development/libraries/SDL_sound/default.nix
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{stdenv, fetchurl, SDL, libvorbis, flac, libmikmod}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "SDL_sound-1.0.3";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://icculus.org/SDL_sound/downloads/${name}.tar.gz";
|
||||||
|
sha256 = "1pz6g56gcy7pmmz3hhych3iq9jvinml2yjz15fjqjlj8pc5zv69r";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ SDL libvorbis flac libmikmod ];
|
||||||
|
|
||||||
|
postInstall = "ln -s $out/include/SDL/SDL_sound.h $out/include/";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "SDL sound library";
|
||||||
|
};
|
||||||
|
}
|
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);
|
@ -5334,6 +5334,10 @@ let
|
|||||||
inherit fetchurl stdenv SDL;
|
inherit fetchurl stdenv SDL;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
SDL_sound = import ../development/libraries/SDL_sound {
|
||||||
|
inherit fetchurl stdenv SDL libvorbis flac libmikmod;
|
||||||
|
};
|
||||||
|
|
||||||
SDL_ttf = import ../development/libraries/SDL_ttf {
|
SDL_ttf = import ../development/libraries/SDL_ttf {
|
||||||
inherit fetchurl stdenv SDL freetype;
|
inherit fetchurl stdenv SDL freetype;
|
||||||
};
|
};
|
||||||
@ -9245,6 +9249,10 @@ let
|
|||||||
inherit fetchurl stdenv SDL openal freealut zlib libpng python;
|
inherit fetchurl stdenv SDL openal freealut zlib libpng python;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gltron = import ../games/gltron {
|
||||||
|
inherit fetchurl stdenv mesa SDL zlib libpng libmikmod libvorbis SDL_sound;
|
||||||
|
};
|
||||||
|
|
||||||
gnuchess = builderDefsPackage (import ../games/gnuchess) {
|
gnuchess = builderDefsPackage (import ../games/gnuchess) {
|
||||||
flex = flex2535;
|
flex = flex2535;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user