Subject: [PATCH 9/9] gnu: Add parinfer-rust.

From: aecepoglu <[email-masked]>
Date: Fri, 14 May 2021 19:18:48 +0300

* gnu/packages/text-editors.scm (parinfer-rust): New variable.
---
 gnu/packages/text-editors.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index 30747057f8..da1a76ad02 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -250,6 +250,40 @@ competitive (as in keystroke count) with Vim.")
 Rust.")
     (license license:unlicense)))
 
+(define-public parinfer-rust
+  (package
+    (name "parinfer-rust")
+    (version "0.4.3")
+    (source
+      (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/eraserhd/parinfer-rust")
+             (commit (string-append "v" version))))
+       (sha256 "0hj5in5h7pj72m4ag80ing513fh65q8xlsf341qzm3vmxm3y3jgd")
+       (file-name (git-file-name name version))))
+    (build-system cargo-build-system)
+    (inputs
+     `(("clang" ,clang)))
+    (arguments
+      `(#:cargo-inputs
+        (("rust-getopts" ,rust-getopts-0.2)
+         ("rust-libc" ,rust-libc-0.2)
+         ("rust-emacs" ,rust-emacs-0.11)
+         ("rust-serde" ,rust-serde-1)
+         ("rust-serde-json" ,rust-serde-json-1)
+         ("rust-serde-derive" ,rust-serde-derive-1)
+         ("rust-unicode-segmentation" ,rust-unicode-segmentation-1)
+         ("rust-unicode-width" ,rust-unicode-width-0.1))))
+    (home-page
+      "https://github.com/justinbarclay/parinfer-rust")
+    (synopsis
+      "Infer parantheses for clojure, lisp, scheme")
+    (description
+      "Parinfer is a plugin for Kakoune, Vim and Emacs
+ that infers paretheses and indentation")
+    (license license:expat)))
+
 (define-public joe
   (package
     (name "joe")
-- 
2.31.1