From d4eb73c0f7d1c08bee5e7ae336704535e4e95a46 Mon Sep 17 00:00:00 2001 From: bandithedoge Date: Fri, 15 Sep 2023 12:23:06 +0200 Subject: [PATCH] add tree-sitter-hypr --- nvfetcher.toml | 8 ++++++-- pkgs/default.nix | 1 + pkgs/treeSitterGrammars/default.nix | 13 +++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 pkgs/treeSitterGrammars/default.nix diff --git a/nvfetcher.toml b/nvfetcher.toml index ffd5e87a..ad395c37 100644 --- a/nvfetcher.toml +++ b/nvfetcher.toml @@ -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" diff --git a/pkgs/default.nix b/pkgs/default.nix index cb669c42..ebd721d2 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -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; diff --git a/pkgs/treeSitterGrammars/default.nix b/pkgs/treeSitterGrammars/default.nix new file mode 100644 index 00000000..96611e53 --- /dev/null +++ b/pkgs/treeSitterGrammars/default.nix @@ -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"; +}