summary refs log tree commit diff
path: root/pkgs/top-level/lua-packages.nix
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2022-12-19 08:43:32 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2022-12-26 03:07:48 +0100
commite33fb7418d3974b623df53a463f94010d3a101bb (patch)
tree49cf7a983a42d69f4aa3e0a38b6318eb03cf03fd /pkgs/top-level/lua-packages.nix
parent40ff955c07786cf3f5dad27b4f08f1df0f280458 (diff)
downloadnixpkgs-e33fb7418d3974b623df53a463f94010d3a101bb.tar
nixpkgs-e33fb7418d3974b623df53a463f94010d3a101bb.tar.gz
nixpkgs-e33fb7418d3974b623df53a463f94010d3a101bb.tar.bz2
nixpkgs-e33fb7418d3974b623df53a463f94010d3a101bb.tar.lz
nixpkgs-e33fb7418d3974b623df53a463f94010d3a101bb.tar.xz
nixpkgs-e33fb7418d3974b623df53a463f94010d3a101bb.tar.zst
nixpkgs-e33fb7418d3974b623df53a463f94010d3a101bb.zip
luaPlugins.lua-resty-core: init at 0.1.24
Diffstat (limited to 'pkgs/top-level/lua-packages.nix')
-rw-r--r--pkgs/top-level/lua-packages.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix
index 606e3b92511..5ea0e298f0a 100644
--- a/pkgs/top-level/lua-packages.nix
+++ b/pkgs/top-level/lua-packages.nix
@@ -59,6 +59,27 @@ rec {
   # a fork of luarocks used to generate nix lua derivations from rockspecs
   luarocks-nix = callPackage ../development/tools/misc/luarocks/luarocks-nix.nix { };
 
+ lua-resty-core = callPackage ({ fetchFromGitHub }: buildLuaPackage rec {
+    pname = "lua-resty-core";
+    version = "0.1.24";
+
+    src = fetchFromGitHub {
+      owner = "openresty";
+      repo = "lua-resty-core";
+      rev = "v${version}";
+      sha256 = "sha256-obwyxHSot1Lb2c1dNqJor3inPou+UIBrqldbkNBCQQk=";
+    };
+
+    propagatedBuildInputs = [ lua-resty-lrucache ];
+
+    meta = with lib; {
+      description = "New FFI-based API for lua-nginx-module";
+      homepage = "https://github.com/openresty/lua-resty-core";
+      license = licenses.bsd3;
+      maintainers = with maintainers; [ SuperSandro2000 ];
+    };
+  }) {};
+
  lua-resty-lrucache = callPackage ({ fetchFromGitHub }: buildLuaPackage rec {
     pname = "lua-resty-lrucache";
     version = "0.13";