Skip to content

Commit

Permalink
add tree-sitter-hypr
Browse files Browse the repository at this point in the history
  • Loading branch information
bandithedoge committed Sep 15, 2023
1 parent 8b76fed commit d4eb73c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,13 @@ fetch.github = "kanjitalk755/macemu"
[basiliskii-bin]
src.github_tag = "Korkman/macemu-appimage-builder"
fetch.url = "https://github.com/Korkman/macemu-appimage-builder/releases/download/$ver/BasiliskII-x86_64.AppImage"
# fetch.force = true

[sheepshaver-bin]
src.github_tag = "Korkman/macemu-appimage-builder"
fetch.url = "https://github.com/Korkman/macemu-appimage-builder/releases/download/$ver/SheepShaver-x86_64.AppImage"
# fetch.force = true

# tree-sitter

[tree-sitter-hypr]
src.git = "https://github.com/luckasRanarison/tree-sitter-hypr"
fetch.github = "luckasRanarison/tree-sitter-hypr"
1 change: 1 addition & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ in {
haskellPackages = pkgs.lib.recurseIntoAttrs (callPackage' ./haskellPackages);
luaPackages = pkgs.lib.recurseIntoAttrs (callPackage' ./luaPackages);
nodePackages = pkgs.lib.recurseIntoAttrs (callPackage' ./nodePackages);
treeSitterGrammars = pkgs.lib.recurseIntoAttrs (callPackage' ./treeSitterGrammars);

dmenu-flexipatch = callPackage' ./flexipatch/dmenu.nix;
dwm-flexipatch = callPackage' ./flexipatch/dwm.nix;
Expand Down
13 changes: 13 additions & 0 deletions pkgs/treeSitterGrammars/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
pkgs,
sources,
}: let
buildGrammar = language:
pkgs.tree-sitter.buildGrammar {
inherit language;
inherit (sources."tree-sitter-${language}") src;
version = sources."tree-sitter-${language}".date;
};
in {
tree-sitter-hypr = buildGrammar "hypr";
}

0 comments on commit d4eb73c

Please sign in to comment.