mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
luaPackages.tree-sitter-norg-meta: init at 0.1.0
needs tree-sitter-cli else complains
This commit is contained in:
parent
605b6a04fe
commit
e4771ff737
3 changed files with 38 additions and 0 deletions
|
|
@ -168,6 +168,7 @@ toml-edit,,,,,5.1,mrcjkb
|
|||
tree-sitter-cli,,,,,,
|
||||
tree-sitter-http,,,,0.0.33-1,,
|
||||
tree-sitter-norg,,,,,5.1,mrcjkb
|
||||
tree-sitter-norg-meta,,,,,,
|
||||
tree-sitter-orgmode,,,,,5.1,
|
||||
utf8,,,,,,
|
||||
tree-sitter-teal,,,,,,
|
||||
|
|
|
|||
|
|
|
@ -6108,6 +6108,36 @@ final: prev: {
|
|||
}
|
||||
) { };
|
||||
|
||||
tree-sitter-norg-meta = callPackage (
|
||||
{
|
||||
buildLuarocksPackage,
|
||||
fetchurl,
|
||||
fetchzip,
|
||||
luarocks-build-treesitter-parser,
|
||||
}:
|
||||
buildLuarocksPackage {
|
||||
pname = "tree-sitter-norg-meta";
|
||||
version = "0.1.0-1";
|
||||
knownRockspec =
|
||||
(fetchurl {
|
||||
url = "mirror://luarocks/tree-sitter-norg-meta-0.1.0-1.rockspec";
|
||||
sha256 = "0vngnyvdad6n36r37sc96asl7h5mph691a0638523mffbg8zdfvr";
|
||||
}).outPath;
|
||||
src = fetchzip {
|
||||
url = "https://github.com/nvim-neorg/tree-sitter-norg-meta/archive/v0.1.0.zip";
|
||||
sha256 = "1vz74wc5yy5fykl9c3b16k6fsvskxp93acsy81p337jzg709v97j";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ luarocks-build-treesitter-parser ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/nvim-neorg/tree-sitter-norg-meta";
|
||||
license.fullName = "MIT";
|
||||
description = "Treesitter parser for Norg's `@document.meta` blocks.";
|
||||
};
|
||||
}
|
||||
) { };
|
||||
|
||||
tree-sitter-orgmode = callPackage (
|
||||
{
|
||||
buildLuarocksPackage,
|
||||
|
|
|
|||
|
|
@ -1252,6 +1252,13 @@ in
|
|||
};
|
||||
});
|
||||
|
||||
tree-sitter-norg-meta = prev.tree-sitter-norg-meta.overrideAttrs (old: {
|
||||
nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [
|
||||
writableTmpDirAsHomeHook
|
||||
tree-sitter
|
||||
];
|
||||
});
|
||||
|
||||
tree-sitter-orgmode = prev.tree-sitter-orgmode.overrideAttrs (old: {
|
||||
nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [
|
||||
writableTmpDirAsHomeHook
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue