1 {lib, stdenv, fetchurl, SDL, libGLU, libGL, zlib, libpng, libvorbis, libmikmod, SDL_sound } :
3 stdenv.mkDerivation rec {
7 url = "mirror://sourceforge/gltron/gltron-${version}-source.tar.gz";
8 sha256 = "e0c8ebb41a18a1f8d7302a9c2cb466f5b1dd63e9a9966c769075e6b6bdad8bb0";
11 patches = [ ./gentoo-prototypes.patch ];
14 # Fix https://sourceforge.net/p/gltron/bugs/15
15 sed -i /__USE_MISC/d lua/src/lib/liolib.c
18 # The build fails, unless we disable the default -Wall -Werror
19 configureFlags = [ "--disable-warn" ];
21 buildInputs = [ SDL libGLU libGL zlib libpng libvorbis libmikmod SDL_sound ];
24 homepage = "http://www.gltron.org/";
25 description = "Game based on the movie Tron";
26 license = lib.licenses.gpl2Plus;
27 maintainers = with lib.maintainers; [viric];
28 platforms = with lib.platforms; linux;