summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2021-03-02 17:40:06 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-03-02 17:46:05 +0100
commite321ddd9b37909a97de7b8ece13c435c59303adc (patch)
tree8b24a42c2446809c20e38b1d0701673c40b527b1
parent83fdec306e01f7de2ab2448a5c75bdc5ae2be8d7 (diff)
downloadguix-e321ddd9b37909a97de7b8ece13c435c59303adc.tar.gz
gnu: Add rust-bat-0.17.
* gnu/packages/crates-io.scm (rust-bat-0.17): New variable.
* gnu/packages/shells.scm (rust-nu-plugin-textview-0.27)[arguments]: Use
rust-bat-0.17 instead of bat as Cargo input.
-rw-r--r--gnu/packages/crates-io.scm45
-rw-r--r--gnu/packages/shells.scm4
2 files changed, 47 insertions, 2 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index cb1ab77bbc..dc427ba764 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -16855,6 +16855,51 @@ of gzip files based on the gzip header implementation in the @code{flate2} crate
 IEEE 754-2008 binary16 type.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-bat-0.17
+  (package
+    (name "rust-bat")
+    (version "0.17.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "bat" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1ia12774prjnm3msiaja6qdpxkpyknxswqpgkmwzj0wn9nhkc7nz"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-ansi-colours" ,rust-ansi-colours-1)
+        ("rust-ansi-term" ,rust-ansi-term-0.12)
+        ("rust-atty" ,rust-atty-0.2)
+        ("rust-clap" ,rust-clap-2)
+        ("rust-clap" ,rust-clap-2)
+        ("rust-console" ,rust-console-0.13)
+        ("rust-content-inspector" ,rust-content-inspector-0.2)
+        ("rust-dirs" ,rust-dirs-3)
+        ("rust-encoding" ,rust-encoding-0.2)
+        ("rust-error-chain" ,rust-error-chain-0.12)
+        ("rust-git2" ,rust-git2-0.13)
+        ("rust-globset" ,rust-globset-0.4)
+        ("rust-lazy-static" ,rust-lazy-static-1)
+        ("rust-path-abs" ,rust-path-abs-0.5)
+        ("rust-semver" ,rust-semver-0.11)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-serde-yaml" ,rust-serde-yaml-0.8)
+        ("rust-shell-words" ,rust-shell-words-1)
+        ("rust-syntect" ,rust-syntect-4)
+        ("rust-unicode-width" ,rust-unicode-width-0.1)
+        ("rust-wild" ,rust-wild-2))))
+    (home-page "https://github.com/sharkdp/bat")
+    (synopsis "@command{cat} clone with syntax highlighting and git integration")
+    (description
+     "@command{bat} is a drop-in @command{cat} replacement featuring syntax
+highlighting for a large number of languages, git integration, and automatic
+paging.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-handlebars-2
   (package
     (name "rust-handlebars")
diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index a6db301149..c605a7566b 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -1860,8 +1860,8 @@ Nushell.")
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
-       (("bat" ,bat)
-        ("rust-ansi-term" ,rust-ansi-term-0.12)
+       (("rust-ansi-term" ,rust-ansi-term-0.12)
+        ("rust-bat" ,rust-bat-0.17)
         ("rust-nu-data" ,rust-nu-data-0.27)
         ("rust-nu-errors" ,rust-nu-errors-0.27)
         ("rust-nu-plugin" ,rust-nu-plugin-0.27)