summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorphodina <phodina@protonmail.com>2021-09-04 07:39:52 +0000
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-09-22 16:57:50 +0200
commite18ba578c4389c69976ea9664e53bc16bbb5eada (patch)
treef7dcca032cd81ac3c71d3cabe31ec8f2e4090a30 /gnu/packages
parentc9466cf2c9ac65c2b83210962f061768343b5efe (diff)
downloadguix-e18ba578c4389c69976ea9664e53bc16bbb5eada.tar.gz
gnu: Add rust-versions-3.
* gnu/packages/crates-io.scm (rust-versions-3): New variable.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 5a3f4fd241..4633529ba5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -55777,6 +55777,31 @@ updated when the crate version changes.")
         ("rust-toml" ,rust-toml-0.4)
         ("rust-url" ,rust-url-1))))))
 
+(define-public rust-versions-3
+  (package
+    (name "rust-versions")
+    (version "3.0.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "versions" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1ffjw6mbsm3nrgg03b76jfc41lg44yz1pyqmv6zj37q88i6y4wri"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-itertools" ,rust-itertools-0.10)
+        ("rust-nom" ,rust-nom-6)
+        ("rust-serde" ,rust-serde-1))))
+    (home-page "https://github.com/fosskers/rs-versions")
+    (synopsis "Library for parsing and comparing software version numbers")
+    (description
+     "This package provides a library for parsing and comparing software
+version numbers.")
+    (license license:expat)))
+
 (define-public rust-void-1
   (package
     (name "rust-void")