nixpkgs/pkgs/misc/emulators/fakenes/default.nix
Lluís Batlle i Rossell ef57b57b92 Adding two NES emulators.
Because of them, I made allegro build the allegrogl library.
I also added the HawkNL library.


svn path=/nixpkgs/trunk/; revision=26517
2011-03-25 22:15:48 +00:00

29 lines
730 B
Nix

{stdenv, fetchurl, allegro, openal, mesa, zlib, hawknl, freeglut, libX11,
libXxf86vm, libXcursor, libXpm }:
stdenv.mkDerivation {
name = "fakenes-0.5.9b3";
src = fetchurl {
url = mirror://sourceforge/fakenes/fakenes-0.5.9-beta3.tar.gz;
sha256 = "026h67s4pzc1vma59pmzk02iy379255qbai2q74wln9bxqcpniy4";
};
buildInputs = [ allegro openal mesa zlib hawknl freeglut libX11
libXxf86vm libXcursor libXpm ];
installPhase = ''
ensureDir $out/bin
cp fakenes $out/bin
'';
NIX_LDFLAGS = "-lX11 -lXxf86vm -lXcursor -lXpm";
patches = [ ./build.patch ];
meta = {
homepage = http://fakenes.sourceforge.net/;
license = "GPLv2+";
description = "Portable Open Source NES Emulator";
};
}