diff mbox series

[bug#74551,rust-team,v3,66/73] gnu: Add rust-versions-6.

Message ID 20241203030059.1214554-67-aaron.covrig.us@ieee.org
State New
Headers show
Series Building starship | expand

Commit Message

Aaron Covrig Dec. 3, 2024, 3 a.m. UTC
From: Jordan Moore <lockbox@struct.foo>

* gnu/packages/crates-io.scm (rust-versions-6): New variable.
---
 gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f0d163ebca..a653090860 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -93585,6 +93585,32 @@  (define-public rust-version-sync-0.6
         ("rust-toml" ,rust-toml-0.4)
         ("rust-url" ,rust-url-1))))))
 
+(define-public rust-versions-6
+  (package
+    (name "rust-versions")
+    (version "6.3.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "versions" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0ff12avdiqhiv6nanikkjl1x3s2y7amkj3r5nivb7zficf5ljpgj"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-itertools" ,rust-itertools-0.13)
+                       ("rust-nom" ,rust-nom-7)
+                       ("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs (("rust-semver" ,rust-semver-1)
+                                   ("rust-semver-parser" ,rust-semver-parser-0.10)
+                                   ("rust-serde-json" ,rust-serde-json-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-vlq-0.5
   (package
     (name "rust-vlq")