1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

lua-packages: added lua-bitop

This commit is contained in:
Markus Kohlhase 2014-10-15 03:53:03 +02:00
parent d86c2c30c5
commit 163b53f706

View file

@ -23,6 +23,31 @@ let
inherit lua;
};
luabitop = buildLuaPackage rec {
version = "1.0.2";
name = "bitop-${version}";
src = fetchurl {
url = "http://bitop.luajit.org/download/LuaBitOp-${version}.tar.gz";
sha256 = "16fffbrgfcw40kskh2bn9q7m3gajffwd2f35rafynlnd7llwj1qj";
};
preBuild = ''
makeFlagsArray=(
INCLUDES="-I${lua}/include"
LUA="${lua}/bin/lua");
'';
installPhase = ''
mkdir -p $out/lib/lua/${lua.luaversion}
install -p bit.so $out/lib/lua/${lua.luaversion}
'';
meta = {
homepage = "http://bitop.luajit.org";
maintainers = with maintainers; [ flosse ];
};
};
luaexpat = buildLuaPackage rec {
version = "1.3.0";
name = "expat-${version}";