summary refs log tree commit diff
path: root/pkgs/misc/emulators/darcnes
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/darcnes
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/darcnes')
-rw-r--r--pkgs/misc/emulators/darcnes/default.nix28
-rw-r--r--pkgs/misc/emulators/darcnes/label.patch13
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/misc/emulators/darcnes/default.nix b/pkgs/misc/emulators/darcnes/default.nix
new file mode 100644
index 000000000000..6cf7d848b654
--- /dev/null
+++ b/pkgs/misc/emulators/darcnes/default.nix
@@ -0,0 +1,28 @@
+{stdenv, fetchurl, libX11, libXt, libXext, libXaw }:
+
+assert stdenv.system == "i686-linux";
+
+stdenv.mkDerivation { 
+  name = "darnes-9b0401";
+  src = fetchurl {
+    url = http://www.dridus.com/~nyef/darcnes/download/dn9b0401.tgz;
+    sha256 = "05a7mh51rg7ydb414m3p5mm05p4nz2bgvspqzwm3bhbj7zz543k3";
+  };
+
+  buildInputs = [ libX11 libXt libXext libXaw ];
+
+  installPhase = ''
+    ensureDir $out/bin
+    cp darcnes $out/bin
+  '';
+
+  patches = [ ./label.patch ];
+
+  meta = {
+    homepage = http://www.dridus.com/~nyef/darcnes/;
+    description = "Multi-System emulator, specially for NES";
+    /* Prohibited commercial use, credit required. */
+    license = "free";
+  };
+
+}
diff --git a/pkgs/misc/emulators/darcnes/label.patch b/pkgs/misc/emulators/darcnes/label.patch
new file mode 100644
index 000000000000..612aa1e3911e
--- /dev/null
+++ b/pkgs/misc/emulators/darcnes/label.patch
@@ -0,0 +1,13 @@
+http://gentoo-overlays.zugaina.org/funtoo/portage/games-emulation/darcnes/files/darcnes-0401-exec-stack.patch
+
+diff -Naur old/video_x.c new/video_x.c
+--- old/video_x.c	2004-09-04 01:26:41.102187277 +0200
++++ new/video_x.c	2004-09-04 01:27:51.586427427 +0200
+@@ -366,6 +366,7 @@
+ 	}
+ 	
+     default:
++    	break;
+     }
+ }
+