unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#52326] [PATCH 1/2] gnu: Add diffr
@ 2021-12-06  9:49 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-07 12:17 ` bug#52326: [PATCH 1/2] " Efraim Flashner
  0 siblings, 2 replies; 4+ messages in thread
From: jgart via Guix-patches via @ 2021-12-06  9:49 UTC (permalink / raw)
  To: 52326

Hi Guix,

Here's diffr:

https://github.com/mookid/diffr




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

* [bug#52326] [PATCH 1/2] gnu: Add rust-diffr-lib-0.1.
  2021-12-06  9:49 [bug#52326] [PATCH 1/2] gnu: Add diffr jgart via Guix-patches via
@ 2021-12-06  9:56 ` jgart via Guix-patches via
  2021-12-06  9:56   ` [bug#52326] [PATCH 2/2] gnu: Add diffr jgart via Guix-patches via
  2021-12-07 12:17 ` bug#52326: [PATCH 1/2] " Efraim Flashner
  1 sibling, 1 reply; 4+ messages in thread
From: jgart via Guix-patches via @ 2021-12-06  9:56 UTC (permalink / raw)
  To: 52326; +Cc: jgart

* gnu/packages/crates-io.scm (rust-diffr-lib-0.1): New variable.
---
 gnu/packages/crates-io.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a4a1599a11..0bce547fac 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -14768,6 +14768,24 @@ (define-public rust-difflib-0.4
      "This crate provides all necessary tools for comparing word sequences.")
     (license license:expat)))
 
+(define-public rust-diffr-lib-0.1
+  (package
+    (name "rust-diffr-lib")
+    (version "0.1.3")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "diffr-lib" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32 "0id3hpblvvcw4ydcd1cc7wgcwqjbh3grlihrmd8zp7k0d2h47i3g"))))
+    (build-system cargo-build-system)
+    (arguments `(#:skip-build? #t))
+    (home-page "https://github.com/mookid/diffr")
+    (synopsis "Implementation of Myers diff algorithm")
+    (description "An implementation of Myers diff algorithm.")
+    (license license:expat)))
+
 (define-public rust-diffs-0.3
   (package
     (name "rust-diffs")
-- 
2.34.0





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

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

* 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





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

* bug#52326: [PATCH 1/2] gnu: Add diffr
  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-07 12:17 ` Efraim Flashner
  1 sibling, 0 replies; 4+ messages in thread
From: Efraim Flashner @ 2021-12-07 12:17 UTC (permalink / raw)
  To: jgart; +Cc: 52326-done

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

Thanks. Patches pushed!

-- 
Efraim Flashner   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2021-12-07 12:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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   ` [bug#52326] [PATCH 2/2] gnu: Add diffr jgart via Guix-patches via
2021-12-07 12:17 ` bug#52326: [PATCH 1/2] " Efraim Flashner

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).