From: Murilo via Guix-patches via <guix-patches@gnu.org>
To: 74519@debbugs.gnu.org
Cc: Murilo <murilo@disroot.org>, Efraim Flashner <efraim@flashner.co.il>
Subject: [bug#74519] [PATCH rust-team 01/30] gnu: Add helix.
Date: Sun, 24 Nov 2024 23:48:12 -0300 [thread overview]
Message-ID: <91c59b75534bacc61113de560c690da45c89f413.1732501656.git.murilo@disroot.org> (raw)
In-Reply-To: <cover.1732501656.git.murilo@disroot.org>
* gnu/packages/rust-apps.scm (helix): New variable.
Change-Id: Ib2d83d3985f09e19601b126749b9a7faa4926bb9
---
gnu/packages/rust-apps.scm | 108 +++++++++++++++++++++++++++++++++++++
1 file changed, 108 insertions(+)
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 652793755b..546a8f71a1 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -32,6 +32,7 @@
;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz>
;;; Copyright © 2024 Suhail Singh <suhail@bayesians.ca>
;;; Copyright © 2024 Jordan Moore <lockbox@struct.foo>
+;;; Copyright © 2024 Murilo <murilo@disroot.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -999,6 +1000,113 @@ (define-public gitui
(description "This package provides a fast Terminal UI for git.")
(license license:expat)))
+(define-public helix
+ (package
+ (name "helix")
+ (version "24.07")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/helix-editor/helix")
+ (commit version)))
+ (modules '((guix build utils)))
+ (snippet '(begin
+ (delete-file-recursively "Cargo.lock")))
+ (file-name (git-file-name "helix" version))
+ (sha256
+ (base32 "1f0l65z1cy8m9x79p5y5kwk1psv0ppfz9lwylggm71q0lj127awl"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:install-source? #f
+ #:phases ,#~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-grammar-build
+ (lambda _
+ (setenv "HELIX_DISABLE_AUTO_GRAMMAR_BUILD" "1")))
+ (replace 'install
+ (lambda _
+ (let* ((bin (string-append #$output "/bin"))
+ (hx (string-append bin "/hx"))
+ (share (string-append #$output
+ "/usr/share/helix"))
+ (runtime (string-append share "/runtime"))
+ (applications (string-append #$output
+ "/share/applications")))
+ (install-file "target/release/hx" bin)
+ (install-file "contrib/Helix.desktop" applications)
+ (copy-recursively "runtime" runtime)
+ (wrap-program hx
+ `("HELIX_RUNTIME" prefix
+ (,runtime)))))))
+ #:cargo-inputs (("rust-ahash" ,rust-ahash-0.8)
+ ("rust-anyhow" ,rust-anyhow-1)
+ ("rust-arc-swap" ,rust-arc-swap-1)
+ ("rust-bitflags" ,rust-bitflags-2)
+ ("rust-cassowary" ,rust-cassowary-0.3)
+ ("rust-cc" ,rust-cc-1)
+ ("rust-chardetng" ,rust-chardetng-0.1)
+ ("rust-chrono" ,rust-chrono-0.4)
+ ("rust-clipboard-win" ,rust-clipboard-win-5)
+ ("rust-content-inspector" ,rust-content-inspector-0.2)
+ ("rust-crossterm" ,rust-crossterm-0.27)
+ ("rust-dunce" ,rust-dunce-1)
+ ("rust-encoding-rs" ,rust-encoding-rs-0.8)
+ ("rust-etcetera" ,rust-etcetera-0.8)
+ ("rust-fern" ,rust-fern-0.6)
+ ("rust-futures-executor" ,rust-futures-executor-0.3)
+ ("rust-futures-util" ,rust-futures-util-0.3)
+ ("rust-gix" ,rust-gix-0.63)
+ ("rust-globset" ,rust-globset-0.4)
+ ("rust-grep-regex" ,rust-grep-regex-0.1)
+ ("rust-grep-searcher" ,rust-grep-searcher-0.1)
+ ("rust-hashbrown" ,rust-hashbrown-0.14)
+ ("rust-ignore" ,rust-ignore-0.4)
+ ("rust-imara-diff" ,rust-imara-diff-0.1)
+ ("rust-indoc" ,rust-indoc-2)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-libloading" ,rust-libloading-0.8)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-lsp-types" ,rust-lsp-types-0.95)
+ ("rust-nucleo" ,rust-nucleo-0.2)
+ ("rust-once-cell" ,rust-once-cell-1)
+ ("rust-open" ,rust-open-5)
+ ("rust-parking-lot" ,rust-parking-lot-0.12)
+ ("rust-pulldown-cmark" ,rust-pulldown-cmark-0.11)
+ ("rust-quickcheck" ,rust-quickcheck-1)
+ ("rust-regex" ,rust-regex-1)
+ ("rust-regex-cursor" ,rust-regex-cursor-0.1)
+ ("rust-ropey" ,rust-ropey-1)
+ ("rust-rustix" ,rust-rustix-0.38)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-signal-hook" ,rust-signal-hook-0.3)
+ ("rust-signal-hook-tokio" ,rust-signal-hook-tokio-0.3)
+ ("rust-slotmap" ,rust-slotmap-1)
+ ("rust-smallvec" ,rust-smallvec-1)
+ ("rust-smartstring" ,rust-smartstring-1)
+ ("rust-tempfile" ,rust-tempfile-3)
+ ("rust-termini" ,rust-termini-1)
+ ("rust-textwrap" ,rust-textwrap-0.16)
+ ("rust-thiserror" ,rust-thiserror-1)
+ ("rust-threadpool" ,rust-threadpool-1)
+ ("rust-tokio" ,rust-tokio-1)
+ ("rust-tokio-stream" ,rust-tokio-stream-0.1)
+ ("rust-toml" ,rust-toml-0.8)
+ ("rust-tree-sitter" ,rust-tree-sitter-0.22)
+ ("rust-unicode-general-category"
+ ,rust-unicode-general-category-0.6)
+ ("rust-unicode-segmentation" ,rust-unicode-segmentation-1)
+ ("rust-unicode-width" ,rust-unicode-width-0.1)
+ ("rust-url" ,rust-url-2)
+ ("rust-which" ,rust-which-6)
+ ("rust-windows-sys" ,rust-windows-sys-0.52))))
+ (inputs (list bash-minimal))
+ (native-inputs (list git))
+ (home-page "https://helix-editor.com/")
+ (synopsis "Post-modern modal text editor")
+ (description "A Kakoune / Neovim inspired editor, written in Rust.")
+ (license (list license:mpl2.0))))
+
(define-public helvum
(package
(name "helvum")
--
2.46.0
next prev parent reply other threads:[~2024-11-25 7:20 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-25 2:28 [bug#74519] [PATCH rust-team 00/30] Add helix Murilo via Guix-patches via
2024-11-25 2:48 ` Murilo via Guix-patches via [this message]
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 02/30] gnu: Add rust-nucleo-0.2 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 03/30] gnu: Add rust-cov-mark-1 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 04/30] gnu: Add rust-nucleo-matcher-0.2 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 05/30] gnu: Add rust-tree-sitter-0.22 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 06/30] gnu: Add rust-termini-1 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 07/30] gnu: Add rust-pulldown-cmark-0.11 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 08/30] gnu: Add rust-pulldown-cmark-escape-0.11 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 09/30] gnu: Add rust-regex-cursor-0.1 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 10/30] gnu: Add rust-unicode-general-category-0.6 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 11/30] gnu: rust-hashbrown-0.14: Update to 0.14.5 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 12/30] gnu: rust-slotmap-1: Update to 1.0.7 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 13/30] gnu: rust-textwrap-0.16: Update to 0.16.1 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 14/30] gnu: rust-clipboard-win-5: Update to 5.4.0 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 15/30] gnu: rust-tokio-stream-0.1: Update to 0.1.16 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 16/30] gnu: Add rust-gix-submodule-0.11 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 17/30] gnu: Add rust-gix-status-0.10 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 18/30] gnu: Add rust-gix-ref-0.44 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 19/30] gnu: Add rust-gix-discover-0.32 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 20/30] gnu: Add rust-gix-dir-0.5 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 21/30] gnu: Add rust-gix-config-0.37 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 22/30] gnu: Add rust-gix-0.63 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 23/30] gnu: rust-open-5: Update to 5.3.1 Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 24/30] gnu: rust-gix-0.66: Update home-page Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 25/30] gnu: rust-gix-config-0.40: " Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 26/30] gnu: rust-gix-dir-0.8: " Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 27/30] gnu: rust-gix-discover-0.35: " Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 28/30] gnu: rust-gix-ref-0.47: " Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 29/30] gnu: rust-gix-status-0.13: " Murilo via Guix-patches via
2024-11-25 2:48 ` [bug#74519] [PATCH rust-team 30/30] gnu: rust-gix-submodule-0.14: " Murilo via Guix-patches via
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=91c59b75534bacc61113de560c690da45c89f413.1732501656.git.murilo@disroot.org \
--to=guix-patches@gnu.org \
--cc=74519@debbugs.gnu.org \
--cc=efraim@flashner.co.il \
--cc=murilo@disroot.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).