luaPackages.tomlua: init at 1.1.5
This commit is contained in:
@@ -5978,6 +5978,40 @@ final: prev: {
|
|||||||
}
|
}
|
||||||
) { };
|
) { };
|
||||||
|
|
||||||
|
tomlua = callPackage (
|
||||||
|
{
|
||||||
|
buildLuarocksPackage,
|
||||||
|
fetchurl,
|
||||||
|
fetchzip,
|
||||||
|
luaOlder,
|
||||||
|
}:
|
||||||
|
buildLuarocksPackage {
|
||||||
|
pname = "tomlua";
|
||||||
|
version = "1.1.5-1";
|
||||||
|
knownRockspec =
|
||||||
|
(fetchurl {
|
||||||
|
url = "mirror://luarocks/tomlua-1.1.5-1.rockspec";
|
||||||
|
sha256 = "0xqxlw1pzvy63kw8d98nfh0k9269s4dg90md72m8kfcrj7isrb6m";
|
||||||
|
}).outPath;
|
||||||
|
src = fetchzip {
|
||||||
|
url = "https://github.com/BirdeeHub/tomlua/archive/v1.1.5.zip";
|
||||||
|
sha256 = "136jxj26dk3jl17dm86ifvfmpfbj0mf6yp2yy6i8g4xxfqs27n9q";
|
||||||
|
};
|
||||||
|
|
||||||
|
disabled = luaOlder "5.1";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = "https://github.com/BirdeeHub/tomlua";
|
||||||
|
maintainers = [ lib.maintainers.birdee ];
|
||||||
|
license.fullName = "MIT";
|
||||||
|
description = "Speedy toml parsing for lua, implemented in C";
|
||||||
|
longDescription = ''
|
||||||
|
Speedy toml parsing for lua, implemented in C
|
||||||
|
for use in hot-path or startup-time parsing of toml files.'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
) { };
|
||||||
|
|
||||||
toml-edit = callPackage (
|
toml-edit = callPackage (
|
||||||
{
|
{
|
||||||
buildLuarocksPackage,
|
buildLuarocksPackage,
|
||||||
|
|||||||
@@ -1240,6 +1240,22 @@ in
|
|||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
tomlua = prev.tomlua.overrideAttrs (old: {
|
||||||
|
postConfigure = ''
|
||||||
|
chmod +w "$rockspecFilename"
|
||||||
|
echo "deploy = { wrap_bin_scripts = false, }" >> "$rockspecFilename"
|
||||||
|
'';
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
installCheckPhase = ''
|
||||||
|
runHook preInstallCheck
|
||||||
|
make test
|
||||||
|
runHook postInstallCheck
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
|
||||||
tree-sitter-cli = prev.tree-sitter-cli.overrideAttrs (_: {
|
tree-sitter-cli = prev.tree-sitter-cli.overrideAttrs (_: {
|
||||||
# Keep this package hermetic: provide the already-packaged tree-sitter
|
# Keep this package hermetic: provide the already-packaged tree-sitter
|
||||||
# binary instead of using the LuaRocks backend that downloads from GitHub.
|
# binary instead of using the LuaRocks backend that downloads from GitHub.
|
||||||
|
|||||||
Reference in New Issue
Block a user