From 2131b0925a48e7ba47861104a45d13d41cd8cf53 Mon Sep 17 00:00:00 2001 From: wisut hantanong Date: Thu, 24 Aug 2017 17:10:56 +0700 Subject: [PATCH] luaPackages.luacheck : init at 0.20.0 --- pkgs/top-level/lua-packages.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix index f33b397958ca..91efa306ce4e 100644 --- a/pkgs/top-level/lua-packages.nix +++ b/pkgs/top-level/lua-packages.nix @@ -71,6 +71,32 @@ let }; }; + luacheck = buildLuaPackage rec { + pname = "luacheck"; + version = "0.20.0"; + name = "${pname}${version}"; + + src = fetchFromGitHub { + owner = "mpeterv"; + repo = "luacheck"; + rev = "${version}"; + sha256 = "0ahfkmqcjhlb7r99bswy1sly6d7p4pyw5f4x4fxnxzjhbq0c5qcs"; + }; + + propagatedBuildInputs = [ lua ]; + + installPhase = '' + ${lua}/bin/lua install.lua $out + ''; + + meta = with stdenv.lib; { + description = "A tool for linting and static analysis of Lua code"; + homepage = https://github.com/mpeterv/luacheck; + license = licenses.mit; + platforms = platforms.unix; + }; + }; + luaevent = buildLuaPackage rec { version = "0.4.3"; name = "luaevent-${version}";