diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2011-03-25 22:15:48 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2011-03-25 22:15:48 +0000 |
commit | ef57b57b929057bae4ab5711cbf799a241018967 (patch) | |
tree | 230c7eb221c433f83eeefc0d56c69aeda7b58a80 /pkgs/development/libraries | |
parent | 9eb80e4f944a8c9d3ef5ab43542565d2cdef96ab (diff) |
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')
-rw-r--r-- | pkgs/development/libraries/allegro/default.nix | 2 | ||||
-rw-r--r-- | pkgs/development/libraries/hawknl/default.nix | 28 |
2 files changed, 29 insertions, 1 deletions
diff --git a/pkgs/development/libraries/allegro/default.nix b/pkgs/development/libraries/allegro/default.nix index 1669d083f226b..e5a976c3418b1 100644 --- a/pkgs/development/libraries/allegro/default.nix +++ b/pkgs/development/libraries/allegro/default.nix @@ -1,7 +1,7 @@ x@{builderDefsPackage , texinfo, libXext, xextproto, libX11, xproto, libXpm, libXt, libXcursor , alsaLib, cmake, zlib, libpng, libvorbis, libXxf86dga, libXxf86misc - , xf86dgaproto, xf86miscproto, xf86vidmodeproto, libXxf86vm, openal + , xf86dgaproto, xf86miscproto, xf86vidmodeproto, libXxf86vm, openal, mesa , ...}: builderDefsPackage (a : diff --git a/pkgs/development/libraries/hawknl/default.nix b/pkgs/development/libraries/hawknl/default.nix new file mode 100644 index 0000000000000..76f4a5a7dae05 --- /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+"; + }; +} |