From: jgart via Guix-patches via <guix-patches@gnu.org>
To: 52326@debbugs.gnu.org
Cc: jgart <jgart@dismail.de>
Subject: [bug#52326] [PATCH 2/2] gnu: Add diffr.
Date: Mon, 6 Dec 2021 04:56:38 -0500 [thread overview]
Message-ID: <20211206095638.28357-2-jgart@dismail.de> (raw)
In-Reply-To: <20211206095638.28357-1-jgart@dismail.de>
* gnu/packages/rust-apps.scm (diffr): New variable.
---
gnu/packages/rust-apps.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 50095fd38b..5ec42201ce 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -518,6 +518,44 @@ (define-public i3status-rust
bar. It is also compatible with sway.")
(license license:gpl3)))
+(define-public diffr
+ (package
+ (name "diffr")
+ (version "0.1.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "diffr" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1b0mz1ki2ksxni6g49x5l5j9ijpyhc11mywvxr9i9h3nr098nc5l"))))
+ (build-system cargo-build-system)
+ (arguments
+ ;; https://github.com/mookid/diffr/issues/79
+ `(#:cargo-test-flags
+ '("--release" "--"
+ "--skip=tests::success"
+ "--skip=test_cli::color_invalid_attribute_name"
+ "--skip=test_cli::color_invalid_color_not_done"
+ "--skip=test_cli::color_invalid_color_value_ansi"
+ "--skip=test_cli::color_invalid_color_value_name"
+ "--skip=test_cli::color_invalid_color_value_rgb"
+ "--skip=test_cli::color_invalid_face_name"
+ "--skip=test_cli::color_ok"
+ "--skip=test_cli::color_ok_multiple"
+ "--skip=test_cli::color_only_face_name"
+ "--skip=test_cli::debug_flag")
+ #:cargo-inputs
+ (("rust-atty" ,rust-atty-0.2)
+ ("rust-clap" ,rust-clap-2)
+ ("rust-diffr-lib" ,rust-diffr-lib-0.1)
+ ("rust-termcolor" ,rust-termcolor-1))))
+ (home-page "https://github.com/mookid/diffr")
+ (synopsis "LCS based diff highlighting tool")
+ (description
+"An LCS based diff highlighting tool to ease code review from your terminal.")
+ (license license:expat)))
+
(define-public ripgrep
(package
(name "ripgrep")
--
2.34.0
next prev parent reply other threads:[~2021-12-06 9:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-06 9:49 [bug#52326] [PATCH 1/2] gnu: Add diffr jgart via Guix-patches via
2021-12-06 9:56 ` [bug#52326] [PATCH 1/2] gnu: Add rust-diffr-lib-0.1 jgart via Guix-patches via
2021-12-06 9:56 ` jgart via Guix-patches via [this message]
2021-12-07 12:17 ` bug#52326: [PATCH 1/2] gnu: Add diffr 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=20211206095638.28357-2-jgart@dismail.de \
--to=guix-patches@gnu.org \
--cc=52326@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 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).