about summary refs log tree commit diff
path: root/pkgs/development/libraries/hawknl
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/development/libraries/hawknl
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/development/libraries/hawknl')
-rw-r--r--pkgs/development/libraries/hawknl/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/libraries/hawknl/default.nix b/pkgs/development/libraries/hawknl/default.nix
new file mode 100644
index 000000000000..76f4a5a7dae0
--- /dev/null
+++ b/pkgs/development/libraries/hawknl/default.nix
@@ -0,0 +1,28 @@
+{stdenv, fetchurl, unzip}:
+
+stdenv.mkDerivation {
+	name = "hawknl-1.34";
+	src = fetchurl {
+		url = http://hawksoft.com/download/files/HawkNL168src.zip;
+		sha256 = "11shn2fbxj3w0j77w0234pqyj1368x686kkgv09q5yqhi1cdp028";
+	};
+
+  buildInputs = [ unzip ];
+
+  makefile = "makefile.linux";
+
+  patchPhase = ''
+    sed -i s/soname,NL/soname,libNL/ src/makefile.linux
+  '';
+
+  preInstall = ''
+    sed -i s,/usr/local,$out, src/makefile.linux
+    ensureDir $out/lib $out/include
+  '';
+
+  meta = {
+    homepage = http://hawksoft.com/hawknl/;
+    description = "Free, open source, game oriented network API";
+    license = "LGPLv2+";
+  };
+}