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