summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Schmitt <git@smittie.de>2022-08-02 22:29:50 +0200
committerMatthieu Coudron <teto@users.noreply.github.com>2022-08-02 23:00:10 +0200
commit8efa6d181cf0fb180f542f24d7ef06cd1bc2a411 (patch)
treefe62e4b3d0fa2da7d4bd75e7f96514d264ec6235
parent0dfc8d855d01c7e562bbdbeed972b8527478c759 (diff)
luaPackages.serpent: init -> 0.30-2
-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 c7b1e405ebba..4272573b7205 100644
--- a/maintainers/scripts/luarocks-packages.csv
+++ b/maintainers/scripts/luarocks-packages.csv
@@ -86,6 +86,7 @@ plenary.nvim,https://github.com/nvim-lua/plenary.nvim.git,,,,lua5_1,
rapidjson,https://github.com/xpol/lua-rapidjson.git,,,,,
readline,,,,,,
say,https://github.com/Olivine-Labs/say.git,,,,,
+serpent,,,,,,
sqlite,,,,,,
std._debug,https://github.com/lua-stdlib/_debug.git,,,,,
std.normalize,https://github.com/lua-stdlib/normalize.git,,,,,
diff --git a/pkgs/development/lua-modules/generated-packages.nix b/pkgs/development/lua-modules/generated-packages.nix
index 22570d3fbb4b..60b273f4baec 100644
--- a/pkgs/development/lua-modules/generated-packages.nix
+++ b/pkgs/development/lua-modules/generated-packages.nix
@@ -2546,6 +2546,39 @@ buildLuarocksPackage {
};
}) {};
+serpent = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
+, fetchgit, lua
+}:
+buildLuarocksPackage {
+ pname = "serpent";
+ version = "0.30-2";
+ knownRockspec = (fetchurl {
+ url = "mirror://luarocks/serpent-0.30-2.rockspec";
+ sha256 = "0v83lr9ars1n0djbh7np8jjqdhhaw0pdy2nkcqzqrhv27rzv494n";
+ }).outPath;
+ src = fetchgit ( removeAttrs (builtins.fromJSON ''{
+ "url": "https://github.com/pkulchenko/serpent",
+ "rev": "d78683597606c6e13a1fed039bc91d86eb8f600f",
+ "date": "2017-09-01T21:35:14-07:00",
+ "path": "/nix/store/z6df44n3p07n4bia7s514vgngbkbpnap-serpent",
+ "sha256": "0q80yfrgqgr01qprf0hrp284ngb7fbcq1v9rbzmdkhbm9lpgy8v8",
+ "fetchLFS": false,
+ "fetchSubmodules": true,
+ "deepClone": false,
+ "leaveDotGit": false
+}
+ '') ["date" "path"]) ;
+
+ disabled = with lua; (luaOlder "5.1") || (luaAtLeast "5.5");
+ propagatedBuildInputs = [ lua ];
+
+ meta = {
+ homepage = "https://github.com/pkulchenko/serpent";
+ description = "Lua serializer and pretty printer";
+ license.fullName = "MIT";
+ };
+}) {};
+
sqlite = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchgit, luv
}: