~ruther/nixos-config

a14e3fbc92a535ab4025fc2678a7170b5352a945 — Frantisek Bohacek 9 months ago 1fc530f
feat: add vhdl treesitter grammar packages, put it to emacs
3 files changed, 20 insertions(+), 3 deletions(-)

M flake.nix
M home/modules/profiles/development/emacs/default.nix
A pkgs/tree-sitter-vhdl.nix
M flake.nix => flake.nix +1 -0
@@ 70,6 70,7 @@
        dwlmsg = pkgs.callPackage ./pkgs/dwlmsg.nix {};
        dwlb = pkgs.callPackage ./pkgs/dwlb.nix {};
        dwl = pkgs.callPackage ./pkgs/dwl {};
        tree-sitter-vhdl = pkgs.callPackage ./pkgs/tree-sitter-vhdl.nix {};
      };

      installIsos = import ./nixos/isos {

M home/modules/profiles/development/emacs/default.nix => home/modules/profiles/development/emacs/default.nix +6 -3
@@ 11,7 11,7 @@
#


{ config, lib, pkgs, ... }:
{ config, lib, inputs, pkgs, ... }:

let
  doomRev = "9620bb45ac4cd7b0274c497b2d9d93c4ad9364ee";


@@ 33,7 33,9 @@ in {
      extraPackages = epkgs: [
        epkgs.vterm
        epkgs.sqlite
        epkgs.treesit-grammars.with-all-grammars
        (epkgs.treesit-grammars.with-grammars (p: [
          inputs.self.packages.${pkgs.system}.tree-sitter-vhdl
        ] ++ (builtins.attrValues p)))
        epkgs.pdf-tools
      ];
    };


@@ 92,10 94,11 @@ in {
      emacs-all-the-icons-fonts
      #binutils # for native comp

      ## Doom emacs dependencies
      ## My emacs dependencies
      gnutls
      fd
      ripgrep
      ripgrep-all

      delta


A pkgs/tree-sitter-vhdl.nix => pkgs/tree-sitter-vhdl.nix +13 -0
@@ 0,0 1,13 @@
{ tree-sitter, fetchFromGitHub }:

tree-sitter.buildGrammar {
  language = "tree-sitter-vhdl";
  version = "0.0.0";

  src = fetchFromGitHub {
    owner = "alemuller";
    repo = "tree-sitter-vhdl";
    rev = "a3b2d84990527c7f8f4ae219c332c00c33d2d8e5";
    hash = "sha256-CtlhSAKp90nXLI5g+vAd0dZZxjPTyMcNFvHL8DBY4j8=";
  };
}

Do not follow this link