mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
lua*Packages.http: init at 0.2
This commit is contained in:
parent
40140997cb
commit
7a605f3c78
1 changed files with 32 additions and 0 deletions
|
@ -222,6 +222,38 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
http = buildLuaPackage rec {
|
||||||
|
version = "0.2";
|
||||||
|
name = "http-${version}";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "daurnimator";
|
||||||
|
repo = "lua-http";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0a8vsj49alaf1fkhv51n5mgpjq8izfff3shcjs8xk7p2bc46vd7i";
|
||||||
|
};
|
||||||
|
|
||||||
|
/* TODO: separate docs derivation? (pandoc is heavy)
|
||||||
|
nativeBuildInputs = [ pandoc ];
|
||||||
|
makeFlags = [ "-C doc" "lua-http.html" "lua-http.3" ];
|
||||||
|
*/
|
||||||
|
|
||||||
|
buildPhase = ":";
|
||||||
|
installPhase = ''
|
||||||
|
install -Dt "$out/lib/lua/${lua.luaversion}/http" \
|
||||||
|
http/*.lua
|
||||||
|
install -Dt "$out/lib/lua/${lua.luaversion}/http/compat" \
|
||||||
|
http/compat/*.lua
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "HTTP library for lua";
|
||||||
|
homepage = "https://daurnimator.github.io/lua-http/${version}/";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ vcunat ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
luacheck = buildLuaPackage rec {
|
luacheck = buildLuaPackage rec {
|
||||||
pname = "luacheck";
|
pname = "luacheck";
|
||||||
version = "0.20.0";
|
version = "0.20.0";
|
||||||
|
|
Loading…
Reference in a new issue