2018-02-24 14:12:44 +01:00
|
|
|
{stdenv, fetchurl, SDL, libGLU_combined, zlib, libpng, libvorbis, libmikmod, SDL_sound } :
|
2010-07-08 16:08:09 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gltron-0.70";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/gltron/${name}-source.tar.gz";
|
|
|
|
sha256 = "e0c8ebb41a18a1f8d7302a9c2cb466f5b1dd63e9a9966c769075e6b6bdad8bb0";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./gentoo-prototypes.patch ];
|
|
|
|
|
2014-12-31 10:51:05 +01:00
|
|
|
postPatch = ''
|
2018-12-01 19:49:28 +01:00
|
|
|
# Fix https://sourceforge.net/p/gltron/bugs/15
|
2014-12-31 10:51:05 +01:00
|
|
|
sed -i /__USE_MISC/d lua/src/lib/liolib.c
|
|
|
|
'';
|
|
|
|
|
2010-07-08 16:08:09 +02:00
|
|
|
# The build fails, unless we disable the default -Wall -Werror
|
2018-07-25 23:44:21 +02:00
|
|
|
configureFlags = [ "--disable-warn" ];
|
2010-07-08 16:08:09 +02:00
|
|
|
|
2018-02-24 14:12:44 +01:00
|
|
|
buildInputs = [ SDL libGLU_combined zlib libpng libvorbis libmikmod SDL_sound ];
|
2010-07-08 16:08:09 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.gltron.org/;
|
|
|
|
description = "Game based on the movie Tron";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-07-08 16:08:09 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|