From: Lee Thompson <lee.p.thomp@gmail.com>
To: 74158@debbugs.gnu.org
Cc: Lee Thompson <lee.p.thomp@gmail.com>
Subject: [bug#74158] [PATCH v2 3/4] gnu: Add parinfer-rust-emacs.
Date: Mon, 4 Nov 2024 16:59:33 +0000 [thread overview]
Message-ID: <ac57e29650deba71d11afedba7f01782aff6951f.1730739208.git.lee.p.thomp@gmail.com> (raw)
In-Reply-To: <cover.1730739208.git.lee.p.thomp@gmail.com>
* gnu/packages/text-editors.scm (parinfer-rust-emacs): New variable.
Change-Id: I6c6fb384edb03b55bae63137576c364cf11e42a5
---
gnu/packages/text-editors.scm | 41 +++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index fae021f012..94bb878355 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -467,6 +467,47 @@ (define-public parinfer-rust
can load dynamic libraries.")
(license license:expat)))
+(define-public parinfer-rust-emacs
+ (package
+ (name "parinfer-rust-emacs")
+ (version "0.4.6")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/justinbarclay/parinfer-rust-emacs")
+ (commit (string-append "v" version))))
+ (sha256
+ (base32 "1v5lcbs1x4f3b428sj9rkjbmfpzyxzny7i0pgdpnr8nyjvpkzns8"))
+ (file-name (git-file-name name version))))
+ (build-system cargo-build-system)
+ (arguments
+ (list
+ #:install-source? #f
+ #:cargo-inputs `(("rust-getopts" ,rust-getopts-0.2)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-emacs" ,rust-emacs-0.19)
+ ("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))
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'install 'install-library
+ (lambda* _
+ (let* ((lib (string-append #$output "/lib")))
+ (with-directory-excursion "target/release"
+ (install-file "libparinfer_rust.so" lib))))))))
+ (inputs (list clang))
+ (home-page "https://github.com/justinbarclay/parinfer-rust-emacs")
+ (synopsis "Emacs-centric fork of parinfer-rust")
+ (description
+ "@command{parinfer-rust-emacs} is an Emacs-centric fork of parinfer-rust,
+itself an implementation of Shaun Lebron’s Parinfer. This builds a shared
+library intended to be loaded by the @command{emacs-parinfer-rust-mode} Emacs
+plugin, though a standalone binary is built also.")
+ (license license:isc)))
+
(define-public joe
(package
(name "joe")
--
2.46.0
next prev parent reply other threads:[~2024-11-04 17:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-01 11:13 [bug#74158] [PATCH 0/4] Add emacs-parinfer-rust-mode Lee Thompson
2024-11-01 13:28 ` [bug#74158] [PATCH 1/4] * gnu/packages/emacs-xyz.scm (emacs-track-changes): New variable Lee Thompson
2024-11-01 13:28 ` [bug#74158] [PATCH 2/4] * gnu/packages/crates-io.scm (rust-emacs-0.19): " Lee Thompson
2024-11-01 13:28 ` [bug#74158] [PATCH 3/4] * gnu/packages/text-editors.scm (parinfer-rust-emacs): " Lee Thompson
2024-11-03 20:30 ` Nicolas Graves via Guix-patches via
2024-11-01 13:28 ` [bug#74158] [PATCH 4/4] * gnu/packages/emacs-xyz.scm (emacs-parinfer-rust-mode): " Lee Thompson
2024-11-03 20:34 ` Nicolas Graves via Guix-patches via
2024-11-04 16:59 ` [bug#74158] [PATCH v2 0/4] Emacs parinfer-rust-mode Lee Thompson
2024-11-04 16:59 ` [bug#74158] [PATCH v2 1/4] gnu: Add emacs-track-changes Lee Thompson
2024-11-04 16:59 ` [bug#74158] [PATCH v2 2/4] gnu: Add rust-emacs-0.19 Lee Thompson
2024-11-04 16:59 ` Lee Thompson [this message]
2024-11-04 16:59 ` [bug#74158] [PATCH v2 4/4] gnu: Add emacs-parinfer-rust-mode Lee Thompson
2024-11-11 13:53 ` [bug#74158] Upstream version bump (v3 4/4) Lee Thompson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ac57e29650deba71d11afedba7f01782aff6951f.1730739208.git.lee.p.thomp@gmail.com \
--to=lee.p.thomp@gmail.com \
--cc=74158@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).