aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-08-02 19:46:02 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-08-14 19:38:17 +0300
commit620e15f9323c0bc70537e7934c31baf29648ca48 (patch)
tree7e64b56b7ff5eb5d2a833924a11572acb0e53073 /gnu/packages
parent1acd09cd94ec578500716dda38416a1644dbffc3 (diff)
downloadguix-620e15f9323c0bc70537e7934c31baf29648ca48.tar
guix-620e15f9323c0bc70537e7934c31baf29648ca48.tar.gz
gnu: Add rust-der-parser-8.
* gnu/packages/crates-io.scm (rust-der-parser-8): New variable. (rust-der-parser-6): Inherit from rust-der-parser-8.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm42
1 files changed, 34 insertions, 8 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d073251a83..60cefc4280 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -18844,8 +18844,41 @@ targets")
"This crate provides a macro to encode DER oids at compile time.")
(license (list license:expat license:asl2.0))))
+(define-public rust-der-parser-8
+ (package
+ (name "rust-der-parser")
+ (version "8.2.0")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "der-parser" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "07mnz9y395zyxwj7nam2dbzkqdngfraxp2i7y2714dxmpbxpdmnv"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-asn1-rs" ,rust-asn1-rs-0.5)
+ ("rust-cookie-factory" ,rust-cookie-factory-0.3)
+ ("rust-displaydoc" ,rust-displaydoc-0.2)
+ ("rust-nom" ,rust-nom-7)
+ ("rust-num-bigint" ,rust-num-bigint-0.4)
+ ("rust-num-traits" ,rust-num-traits-0.2)
+ ("rust-rusticata-macros" ,rust-rusticata-macros-4))
+ #:cargo-development-inputs
+ (("rust-hex-literal" ,rust-hex-literal-0.3)
+ ("rust-pretty-assertions" ,rust-pretty-assertions-1)
+ ("rust-test-case" ,rust-test-case-3))))
+ (home-page "https://github.com/rusticata/der-parser")
+ (synopsis "BER/DER parser written in pure Rust")
+ (description "This crate provides a parser for Basic Encoding Rules (BER
+[X.690]) and Distinguished Encoding Rules(DER [X.690]), implemented with the
+@code{nom} parser combinator framework.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-der-parser-6
(package
+ (inherit rust-der-parser-8)
(name "rust-der-parser")
(version "6.0.0")
(source
@@ -18855,7 +18888,6 @@ targets")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0gn465dncghmj52k8dlkl71wkmlz5zc6jfjgj9ra2knf22ryy1wq"))))
- (build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
@@ -18869,13 +18901,7 @@ targets")
#:cargo-development-inputs
(("rust-hex-literal" ,rust-hex-literal-0.3)
("rust-pretty-assertions" ,rust-pretty-assertions-0.7)
- ("rust-test-case" ,rust-test-case-1))))
- (home-page "https://github.com/rusticata/der-parser")
- (synopsis "BER/DER parser written in pure Rust")
- (description "This crate provides a parser for Basic Encoding Rules (BER
-[X.690]) and Distinguished Encoding Rules(DER [X.690]), implemented with the
-@code{nom} parser combinator framework.")
- (license (list license:expat license:asl2.0))))
+ ("rust-test-case" ,rust-test-case-1))))))
(define-public rust-derivative-2
(package