From: jgart via Guix-patches via <guix-patches@gnu.org>
To: 52300@debbugs.gnu.org
Cc: jgart <jgart@dismail.de>
Subject: [bug#52300] [PATCH 2/2] gnu: Add hex.
Date: Sun, 5 Dec 2021 04:53:12 -0500 [thread overview]
Message-ID: <20211205095312.24889-2-jgart@dismail.de> (raw)
In-Reply-To: <20211205095312.24889-1-jgart@dismail.de>
* gnu/packages/rust-apps.scm (hex): New variable.
---
gnu/packages/rust-apps.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 6ce98610f5..8634356ccd 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -857,6 +857,37 @@ (define-public tectonic
of support files.")
(license license:expat)))
+(define-public hex
+ (package
+ (name "hex")
+ (version "0.4.2")
+ (source
+ (origin
+ ;; crates.io does not provide the test data.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sitkevij/hex")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "03x27nixdlnkkrh85gy4152arp02kpjwq0i9dn9p73lyr24s64lv"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-ansi-term" ,rust-ansi-term-0.12)
+ ("rust-atty" ,rust-atty-0.2)
+ ("rust-clap" ,rust-clap-2)
+ ("rust-no-color" ,rust-no-color-0.1))
+ #:cargo-development-inputs
+ (("rust-assert-cmd" ,rust-assert-cmd-1))))
+ (home-page "https://github.com/sitkevij/hex")
+ (synopsis "Futuristic take on hexdump")
+ (description
+"@command{hx} accepts a file path as input and outputs a hexadecimal
+colorized view to stdout.")
+ (license license:expat)))
+
(define-public tokei
(package
(name "tokei")
--
2.34.0
next prev parent reply other threads:[~2021-12-05 9:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-05 9:41 [bug#52300] [PATCH 1/2] gnu: Add hex jgart via Guix-patches via
2021-12-05 9:53 ` [bug#52300] [PATCH 1/2] gnu: Add rust-no-color-0.1 jgart via Guix-patches via
2021-12-05 9:53 ` jgart via Guix-patches via [this message]
2021-12-05 18:50 ` bug#52300: [PATCH 1/2] gnu: Add hex Nicolas Goaziou
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211205095312.24889-2-jgart@dismail.de \
--to=guix-patches@gnu.org \
--cc=52300@debbugs.gnu.org \
--cc=jgart@dismail.de \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.