lua-rtoml: init 0.2

This commit is contained in:
Luka Blaskovic 2023-11-02 13:11:14 +00:00 committed by Matthieu Coudron
parent 49f444897b
commit cac8c76f21
3 changed files with 41 additions and 0 deletions

View file

@ -49,6 +49,7 @@ lua-resty-jwt,,,,,,
lua-resty-openidc,,,,,,
lua-resty-openssl,,,,,,
lua-resty-session,,,,,,
lua-rtoml,https://github.com/lblasc/lua-rtoml,,,,,lblasc
lua-subprocess,https://github.com/0x0ade/lua-subprocess,,,,5.1,scoder12
lua-term,,,,,,
lua-toml,,,,,,

1 name src ref server version luaversion maintainers
49 lua-resty-openidc
50 lua-resty-openssl
51 lua-resty-session
52 lua-rtoml https://github.com/lblasc/lua-rtoml lblasc
53 lua-subprocess https://github.com/0x0ade/lua-subprocess 5.1 scoder12
54 lua-term
55 lua-toml

View file

@ -1384,6 +1384,35 @@ buildLuarocksPackage {
};
}) {};
lua-rtoml = callPackage({ luaOlder, luarocks-build-rust-mlua, buildLuarocksPackage, lua, fetchgit }:
buildLuarocksPackage {
pname = "lua-rtoml";
version = "0.2-0";
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/lblasc/lua-rtoml.git",
"rev": "e59ad00f5df8426767ddfb355f4ba6093468a168",
"date": "2023-11-02T14:17:41+01:00",
"path": "/nix/store/ynn6bvnwyqrackvyxzysxy294gh9prg1-lua-rtoml",
"sha256": "1y2ncdl3mpwqc1h5xm0rf9g1ns2vswgqffsj9sqrqidmg984jkr4",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
"leaveDotGit": false
}
'') ["date" "path"]) ;
disabled = (luaOlder "5.1");
propagatedBuildInputs = [ lua luarocks-build-rust-mlua ];
meta = {
homepage = "https://github.com/lblasc/lua-rtoml";
description = "Lua bindings for the Rust toml crate.";
maintainers = with lib.maintainers; [ lblasc ];
license.fullName = "MIT";
};
}) {};
lua-subprocess = callPackage({ lua, buildLuarocksPackage, fetchgit, luaOlder }:
buildLuarocksPackage {
pname = "subprocess";

View file

@ -402,6 +402,17 @@ with prev;
meta.broken = luaOlder "5.1" || luaAtLeast "5.4";
});
lua-rtoml = prev.lua-rtoml.overrideAttrs (oa: {
cargoDeps = rustPlatform.fetchCargoTarball {
src = oa.src;
hash = "sha256-EcP4eYsuOVeEol+kMqzsVHd8F2KoBdLzf6K0KsYToUY=";
};
propagatedBuildInputs = oa.propagatedBuildInputs ++ [ cargo rustPlatform.cargoSetupHook ];
});
lush-nvim = prev.lush-nvim.overrideAttrs (drv: {
doCheck = false;
});