diff mbox series

[bug#69890,09/43] gnu: Add rust-minus-5.

Message ID b490f772b8b54cb698ee58a35fc1f2e322c4c792.1710817680.git.normally_js@posteo.net
State New
Headers show
Series gnu: Add procs. | expand

Commit Message

normally_js March 19, 2024, 3:50 a.m. UTC
* gnu/packages/crates-io.scm (rust-minus-5): New variable.

Change-Id: Iedc2c79bafaa74ff74bc28b902e57ef0878784fd
---
 gnu/packages/crates-io.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 993f50d862..f4e37b61fc 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -38250,6 +38250,41 @@  (define-public rust-miniz-oxide-0.3
     (arguments
      `(#:cargo-inputs (("rust-adler32" ,rust-adler32-1))))))
 
+(define-public rust-minus-5
+  (package
+    (name "rust-minus")
+    (version "5.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "minus" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "19cwjr8ikqpngxj6c4xbbvylkjkp19cs4k2dnnav5ngzz4nywv6p"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags
+       '("--release" "--" ; unresolved imports
+         "--skip=src/lib.rs - (line 174)"
+         "--skip=src/lib.rs - (line 200)"
+         "--skip=src/lib.rs - (line 233)")
+       #:cargo-inputs
+       (("rust-crossbeam-channel" ,rust-crossbeam-channel-0.5)
+        ("rust-crossterm" ,rust-crossterm-0.27)
+        ("rust-once-cell" ,rust-once-cell-1)
+        ("rust-parking-lot" ,rust-parking-lot-0.12)
+        ("rust-regex" ,rust-regex-1)
+        ("rust-textwrap" ,rust-textwrap-0.16)
+        ("rust-thiserror" ,rust-thiserror-1))
+       #:cargo-development-inputs
+       (("rust-tokio" ,rust-tokio-1))))
+    (home-page "https://github.com/arijit79/minus")
+    (synopsis "Asynchronous data feedable terminal paging library for Rust")
+    (description
+     "This package provides a asynchronous data feedable terminal paging
+library for Rust.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-mint-0.5
   (package
     (name "rust-mint")