Subject: [PATCH 38/81] gnu: Add rust-oid-registry-0.7.

From: Herman Rimm <[email-masked]>
Date: Mon, 20 May 2024 10:58:43 +0200

* gnu/packages/crates-tls.scm (rust-oid-registry-0.7): Add variable.
(rust-oid-registry-0.6): Inherit from rust-oid-registry-0.7.

Change-Id: I13a4ce0ce2761e537839fbdac10f43df87de92b9
---
 gnu/packages/crates-tls.scm | 32 ++++++++++++++++++++++++--------
 1 file changed, 24 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-tls.scm b/gnu/packages/crates-tls.scm
index 9d2f989bdc..2694da4c48 100644
--- a/gnu/packages/crates-tls.scm
+++ b/gnu/packages/crates-tls.scm
@@ -753,8 +753,31 @@ (define-public rust-native-tls-0.2
 implementation.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-oid-registry-0.7
+  (package
+    (name "rust-oid-registry")
+    (version "0.7.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "oid-registry" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+          "07cdchd80199apgf1rxjf0b4dsrlnsdkcir57jf5n926a3a8v58w"))))
+    (build-system cargo-build-system)
+    (arguments (list #:cargo-inputs (list rust-asn1-rs-0.6)))
+    (home-page "https://github.com/rusticata/oid-registry")
+    (synopsis "Object Identifier (OID) database")
+    (description
+      "This crate is a helper crate, containing a database of OID objects.
+These objects are intended for use when manipulating ASN.1 grammars and
+BER/DER encodings, for example.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-oid-registry-0.6
   (package
+    (inherit rust-oid-registry-0.7)
     (name "rust-oid-registry")
     (version "0.6.1")
     (source (origin
@@ -764,15 +787,8 @@ (define-public rust-oid-registry-0.6
               (sha256
                (base32
                 "1zwvjp3ad6gzn8g8w2hcn9a2xdap0lkzckhlnwp6rabbzdpz7vcv"))))
-    (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs (("rust-asn1-rs" ,rust-asn1-rs-0.5))))
-    (home-page "https://github.com/rusticata/oid-registry")
-    (synopsis "Object Identifier (OID) database")
-    (description "This crate is a helper crate, containing a database of
-OID objects.  These objects are intended for use when manipulating ASN.1
-grammars and BER/DER encodings, for example.")
-    (license (list license:expat license:asl2.0))))
+     `(#:cargo-inputs (("rust-asn1-rs" ,rust-asn1-rs-0.5))))))
 
 (define-public rust-oid-registry-0.4
   (package
-- 
2.41.0