summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Schmitt <git@smittie.de>2022-08-02 22:33:57 +0200
committerMatthieu Coudron <teto@users.noreply.github.com>2022-08-05 11:30:56 +0200
commit16559154a6af6cbaf4dce48e486e98afd8195cbf (patch)
tree10f43a0ace11376fc9df53c956fd8a90718488a0
parent901a4af249696c25028ffd6c517681b3d030eb6c (diff)
luaPackages.protobuf: init at 0.4.0
-rw-r--r--maintainers/scripts/luarocks-packages.csv1
-rw-r--r--pkgs/development/lua-modules/generated-packages.nix33
2 files changed, 34 insertions, 0 deletions
diff --git a/maintainers/scripts/luarocks-packages.csv b/maintainers/scripts/luarocks-packages.csv
index 2511f0681865..9129b0282194 100644
--- a/maintainers/scripts/luarocks-packages.csv
+++ b/maintainers/scripts/luarocks-packages.csv
@@ -39,6 +39,7 @@ lua-cmsgpack,,,,,,
lua-iconv,,,,,,
lua-lsp,,,,,,
lua-messagepack,,,,,,
+lua-protobuf,,,,,,
lua-resty-http,,,,,,
lua-resty-jwt,,,,,,
lua-resty-openidc,,,,,,
diff --git a/pkgs/development/lua-modules/generated-packages.nix b/pkgs/development/lua-modules/generated-packages.nix
index 60b273f4baec..bbe08a9a77ee 100644
--- a/pkgs/development/lua-modules/generated-packages.nix
+++ b/pkgs/development/lua-modules/generated-packages.nix
@@ -1161,6 +1161,39 @@ buildLuarocksPackage {
};
}) {};
+lua-protobuf = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
+, fetchgit, lua
+}:
+buildLuarocksPackage {
+ pname = "lua-protobuf";
+ version = "0.4.0-1";
+ knownRockspec = (fetchurl {
+ url = "mirror://luarocks/lua-protobuf-0.4.0-1.rockspec";
+ sha256 = "053r6z37847wm1xaxv5rwplmdqkp507qawgd382z0l7m05f06ls9";
+ }).outPath;
+ src = fetchgit ( removeAttrs (builtins.fromJSON ''{
+ "url": "https://github.com/starwing/lua-protobuf.git",
+ "rev": "832facd266366cd86ee9bf41d35327255d0033f2",
+ "date": "2022-07-27T14:34:12+08:00",
+ "path": "/nix/store/g68x4cbi6ssd5zak14r5cbi7k88d3ml9-lua-protobuf",
+ "sha256": "0ynfq0va4w8zlr67ld6v9nmi5mnvchfygd8h5jbwk2vzlj9hg2yw",
+ "fetchLFS": false,
+ "fetchSubmodules": true,
+ "deepClone": false,
+ "leaveDotGit": false
+}
+ '') ["date" "path"]) ;
+
+ disabled = with lua; (luaOlder "5.1");
+ propagatedBuildInputs = [ lua ];
+
+ meta = {
+ homepage = "https://github.com/starwing/lua-protobuf";
+ description = "protobuf data support for Lua";
+ license.fullName = "MIT";
+ };
+}) {};
+
lua-resty-http = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchgit, lua
}: