@@ -376,3 +376,36 @@ (define-public tree-sitter-elixir
(license (list license:asl2.0
;; Files in tests/corpus are under MIT license.
license:expat)))))
+
+(define-public tree-sitter-elm
+ (package (inherit tree-sitter-c)
+ (name "tree-sitter-elm")
+ (version "5.5.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/elm-tooling/tree-sitter-elm")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "10hbi4vyj4hjixqswdcbvzl60prldczz29mlp02if61wvwiwvqrw"))
+ (modules '((guix build utils)))
+ (snippet tree-sitter-delete-generated-files)))
+ (arguments
+ (substitute-keyword-arguments (package-arguments tree-sitter-c)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (replace 'delete-dependencies
+ (lambda _
+ (delete-dependencies '("tree-sitter-cli"
+ "nan"
+ "node-gyp"
+ "@asgerf/dts-tree-sitter"
+ "prebuild"
+ "prebuild-install"))))))))
+ (home-page "https://elm-tooling.github.io/tree-sitter-elm/")
+ (synopsis "Tree-sitter Elm grammar")
+ (description
+ "This package provides an Elm grammar for the Tree-sitter library.")
+ (license license:expat)))