about summary refs log tree commit diff
path: root/pkgs/misc/emulators/fakenes/default.nix
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-03-25 22:15:48 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-03-25 22:15:48 +0000
commitef57b57b929057bae4ab5711cbf799a241018967 (patch)
tree230c7eb221c433f83eeefc0d56c69aeda7b58a80 /pkgs/misc/emulators/fakenes/default.nix
parent9eb80e4f944a8c9d3ef5ab43542565d2cdef96ab (diff)
downloadnixlib-ef57b57b929057bae4ab5711cbf799a241018967.tar
nixlib-ef57b57b929057bae4ab5711cbf799a241018967.tar.gz
nixlib-ef57b57b929057bae4ab5711cbf799a241018967.tar.bz2
nixlib-ef57b57b929057bae4ab5711cbf799a241018967.tar.lz
nixlib-ef57b57b929057bae4ab5711cbf799a241018967.tar.xz
nixlib-ef57b57b929057bae4ab5711cbf799a241018967.tar.zst
nixlib-ef57b57b929057bae4ab5711cbf799a241018967.zip
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
Diffstat (limited to 'pkgs/misc/emulators/fakenes/default.nix')
-rw-r--r--pkgs/misc/emulators/fakenes/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/misc/emulators/fakenes/default.nix b/pkgs/misc/emulators/fakenes/default.nix
new file mode 100644
index 000000000000..62ecb6e4156d
--- /dev/null
+++ b/pkgs/misc/emulators/fakenes/default.nix
@@ -0,0 +1,28 @@
+{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";
+  };
+}