unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Gabriel Arazas <foo.dogsquared@gmail.com>
To: 43309@debbugs.gnu.org
Subject: [bug#43309] [PATCH] Add Hexyl into the package list
Date: Thu, 10 Sep 2020 21:16:15 +0800	[thread overview]
Message-ID: <f198e564-d321-7628-9c2e-919fa2ac6e1d@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

Hello! I've finally getting serious into Guix and wanting to start 
contributing to it immediately to help expand the package list.

I've followed the video tutorials from the official website and some 
referencing to the manual and I got my first package. I have to say it's 
quite straightforward coming from someone with no experience in software 
packaging.

Anyways, attached to my email is my patch adding Hexyl 
(https://github.com/sharkdp/hexyl) into the list.

I'll be looking forward to add more packages. :)


Best regards,

Gabriel Arazas


[-- Attachment #2: 0001-gnu-Add-hexyl.patch --]
[-- Type: text/x-patch, Size: 2041 bytes --]

From 264a03e5c18d8ff852478ed8abee2a1c627c8955 Mon Sep 17 00:00:00 2001
From: Gabriel Arazas <foo.dogsquared@gmail.com>
Date: Thu, 10 Sep 2020 19:27:31 +0800
Subject: [PATCH] gnu: Add hexyl.

* gnu/packages/rust-apps.scm (hexyl): New variable.
---
 gnu/packages/rust-apps.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 76be9acad1..d9ff303e0c 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
 ;;; Copyright © 2020 Leo Famulari <leo@famulari.name>
 ;;; Copyright © 2020 Mark H Weaver <mhw@netris.org>
+;;; Copyright © 2020 Gabriel Arazas <foo.dogsquared@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -205,6 +206,34 @@ While it does not seek to mirror all of find's powerful functionality, it
 provides defaults for 80% of the use cases.")
     (license (list license:expat license:asl2.0))))
 
+(define-public hexyl
+  (package
+    (name "hexyl")
+    (version "0.8.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "hexyl" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0sipag77196467idbznbk5q5lwhqz85zw7y1pwg9b27jxqyk04rp"))))
+    (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-libc" ,rust-libc-0.2))))
+    (home-page "https://github.com/sharkdp/hexyl")
+    (synopsis "Command-line hex viewer")
+    (description
+      "This package provides a command line hex viewer.
+It uses a colored output for distinguishing different kinds of bytes such as
+NULL bytes, ASCII whitespace, and non-ASCII whitespace.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public ripgrep
   (package
     (name "ripgrep")
-- 
2.28.0


             reply	other threads:[~2020-09-10 15:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-10 13:16 Gabriel Arazas [this message]
2020-09-11 11:26 ` [bug#43309] [PATCH] Add Hexyl into the package list Efraim Flashner
2020-09-11 11:27 ` bug#43309: " Efraim Flashner

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=f198e564-d321-7628-9c2e-919fa2ac6e1d@gmail.com \
    --to=foo.dogsquared@gmail.com \
    --cc=43309@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).