This is an automated email from the git hooks/post-receive script.

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 7d93e06777d gnu: Add emacs-tree-sitter-grammars
7d93e06777d is described below

commit 7d93e06777da9053e36a085a28ff64b004e79a68
Author: Icy-Thought <[email protected]>
AuthorDate: Wed Nov 4 17:52:26 2026 +0100

    gnu: Add emacs-tree-sitter-grammars
    
    * gnu/packages/emacs.scm (emacs-tree-sitter-grammars): New variable.
    
    Signed-off-by: Liliana Marie Prikler <[email protected]>
    Merges: guix/guix#12316
---
 gnu/packages/emacs.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 4b3ee4506e0..b7a29de0bd3 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -55,6 +55,7 @@
   #:use-module (guix build-system)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system glib-or-gtk)
+  #:use-module (guix build-system trivial)
   #:use-module (gnu packages)
   #:use-module (gnu packages acl)
   #:use-module (gnu packages autotools)
@@ -946,3 +947,47 @@ Started in 2014 as a GSOC project, Guile-Emacs was 
resurrected in 2024.")
                 (lambda _
                   (call-with-output-file "lisp/finder-inf.el"
                     (lambda (port) (display port))))))))))))
+
+(define-public emacs-tree-sitter-grammars
+  (package
+    (name "emacs-tree-sitter-grammars")
+    (version (package-version tree-sitter))
+    (source #f)
+    (build-system trivial-build-system)
+    (arguments
+     (list
+      #:modules '((guix build union))
+      #:builder
+      #~(begin
+          (use-modules (guix build union))
+          (union-build #$output
+                       (map cdr %build-inputs)))))
+    (inputs
+     (list tree-sitter-bash
+           tree-sitter-c
+           tree-sitter-cpp
+           tree-sitter-c-sharp
+           tree-sitter-css
+           tree-sitter-cmake
+           tree-sitter-dockerfile
+           tree-sitter-elixir
+           tree-sitter-go
+           tree-sitter-gomod
+           tree-sitter-heex
+           tree-sitter-html
+           tree-sitter-java
+           tree-sitter-javascript
+           tree-sitter-json
+           tree-sitter-lua
+           tree-sitter-markdown
+           tree-sitter-php
+           tree-sitter-python
+           tree-sitter-ruby
+           tree-sitter-rust
+           tree-sitter-toml
+           tree-sitter-typescript
+           tree-sitter-yaml))
+    (home-page "https://tree-sitter.github.io/";)
+    (synopsis "Tree-sitter grammars for Emacs")
+    (description "This package provides a union of Guix tree-sitter grammars 
for Emacs.")
+    (license license:expat)))

Reply via email to