all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#52300] [PATCH 1/2] gnu: Add hex
@ 2021-12-05  9:41 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 18:50 ` bug#52300: [PATCH 1/2] " Nicolas Goaziou
  0 siblings, 2 replies; 4+ messages in thread
From: jgart via Guix-patches via @ 2021-12-05  9:41 UTC (permalink / raw)
  To: 52300

Hi Guixers,

Here is hex:

https://github.com/sitkevij/hex

A futuristic take on hexdump.

hx accepts a file path as input and outputs a hexadecimal colorized view
to stdout.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#52300] [PATCH 1/2] gnu: Add rust-no-color-0.1.
  2021-12-05  9:41 [bug#52300] [PATCH 1/2] gnu: Add hex jgart via Guix-patches via
@ 2021-12-05  9:53 ` jgart via Guix-patches via
  2021-12-05  9:53   ` [bug#52300] [PATCH 2/2] gnu: Add hex jgart via Guix-patches via
  2021-12-05 18:50 ` bug#52300: [PATCH 1/2] " Nicolas Goaziou
  1 sibling, 1 reply; 4+ messages in thread
From: jgart via Guix-patches via @ 2021-12-05  9:53 UTC (permalink / raw)
  To: 52300; +Cc: jgart

* gnu/packages/crates-io.scm (rust-no-color-0.1): New variable.
---
 gnu/packages/crates-io.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ad90a2d4a4..8d1a52c738 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -32161,6 +32161,26 @@ (define-public rust-nl80211-0.0.2
 to nl80211 and receive messages.")
     (license license:expat)))
 
+(define-public rust-no-color-0.1
+  (package
+    (name "rust-no-color")
+    (version "0.1.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "no_color" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32 "1m0x6i5q1jav2jgajkg4irrkfgv4lakpdvmj310b90wswdyy9xdx"))))
+    (build-system cargo-build-system)
+    (arguments `(#:skip-build? #t))
+    (home-page "https://github.com/sitkevij/no_color")
+    (synopsis "Library to detect NO_COLOR environment variable")
+    (description
+"@code{no_color} is a rust library for detecting if the @code{NO_COLOR}
+environment variable is set.")
+    (license license:expat)))
+
 (define-public rust-no-panic-0.1
   (package
     (name "rust-no-panic")
-- 
2.34.0





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#52300] [PATCH 2/2] gnu: Add hex.
  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
  0 siblings, 0 replies; 4+ messages in thread
From: jgart via Guix-patches via @ 2021-12-05  9:53 UTC (permalink / raw)
  To: 52300; +Cc: jgart

* 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





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#52300: [PATCH 1/2] gnu: Add hex
  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 18:50 ` Nicolas Goaziou
  1 sibling, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2021-12-05 18:50 UTC (permalink / raw)
  To: jgart via Guix-patches via; +Cc: jgart, 52300-done

Hello,

jgart via Guix-patches via <guix-patches@gnu.org> writes:

> Here is hex:
>
> https://github.com/sitkevij/hex
>
> A futuristic take on hexdump.
>
> hx accepts a file path as input and outputs a hexadecimal colorized view
> to stdout.

Thank you.  I changed the synopsis because "futuristic take on hexdump"
sounds like an ad, and applied your patch.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-12-05 18:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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   ` [bug#52300] [PATCH 2/2] gnu: Add hex jgart via Guix-patches via
2021-12-05 18:50 ` bug#52300: [PATCH 1/2] " Nicolas Goaziou

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.