2021-01-15 14:21:58 +01:00
|
|
|
{lib, stdenv, fetchurl, allegro, openal, libGLU, libGL, zlib, hawknl, freeglut, libX11,
|
2011-03-25 23:15:48 +01:00
|
|
|
libXxf86vm, libXcursor, libXpm }:
|
|
|
|
|
2021-08-12 23:00:21 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fakenes";
|
|
|
|
version = "0.5.9-beta3";
|
|
|
|
|
2011-03-25 23:15:48 +01:00
|
|
|
src = fetchurl {
|
2021-08-12 23:00:21 +02:00
|
|
|
url = "mirror://sourceforge/fakenes/fakenes-${version}.tar.gz";
|
2011-03-25 23:15:48 +01:00
|
|
|
sha256 = "026h67s4pzc1vma59pmzk02iy379255qbai2q74wln9bxqcpniy4";
|
|
|
|
};
|
|
|
|
|
2019-11-10 17:44:34 +01:00
|
|
|
buildInputs = [ allegro openal libGLU libGL zlib hawknl freeglut libX11
|
2011-03-25 23:15:48 +01:00
|
|
|
libXxf86vm libXcursor libXpm ];
|
|
|
|
|
2016-08-04 09:26:31 +02:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2011-03-25 23:15:48 +01:00
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2011-03-25 23:15:48 +01:00
|
|
|
cp fakenes $out/bin
|
|
|
|
'';
|
|
|
|
|
2017-09-28 17:11:42 +02:00
|
|
|
NIX_LDFLAGS = "-lX11 -lXxf86vm -lXcursor -lXpm";
|
2011-03-25 23:15:48 +01:00
|
|
|
|
|
|
|
patches = [ ./build.patch ];
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://fakenes.sourceforge.net/";
|
2021-01-15 14:21:58 +01:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2011-03-25 23:15:48 +01:00
|
|
|
description = "Portable Open Source NES Emulator";
|
2021-01-15 14:21:58 +01:00
|
|
|
platforms = lib.platforms.linux;
|
2017-09-28 17:11:42 +02:00
|
|
|
broken = true;
|
2011-03-25 23:15:48 +01:00
|
|
|
};
|
|
|
|
}
|