diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-11-20 20:46:59 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-11-28 11:05:33 +0200 |
commit | 80a77d59d13875f261f7437470231f71312d6c87 (patch) | |
tree | d5dd49b993ed8ae7b15700f76c8e38b933de7ffe /gnu | |
parent | 8aaf538abb169be39470065ac13d8121f1729c5f (diff) | |
download | guix-80a77d59d13875f261f7437470231f71312d6c87.tar guix-80a77d59d13875f261f7437470231f71312d6c87.tar.gz |
gnu: Add rust-x509-parser-0.16.
* gnu/packages/crates-tls.scm (rust-x509-parser-0.16): New variable.
(rust-x509-parser-0.15): Inherit from rust-x509-parser-0.16.
Change-Id: I3d52e20168c0f0a7f80124044aeed4a79d697033
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-tls.scm | 39 |
1 files changed, 32 insertions, 7 deletions
diff --git a/gnu/packages/crates-tls.scm b/gnu/packages/crates-tls.scm index d03a67a63a..7cc42dbe43 100644 --- a/gnu/packages/crates-tls.scm +++ b/gnu/packages/crates-tls.scm @@ -2010,8 +2010,39 @@ rustls-platform-verifier crate. You shouldn't depend on this directly.") Public Key Infrastructure Certificate format as described in RFC 5280.") (license (list license:asl2.0 license:expat)))) +(define-public rust-x509-parser-0.16 + (package + (name "rust-x509-parser") + (version "0.16.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "x509-parser" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0s8zyl6fafkzpylcpcn08bmcmrzzcb6gfjx2h8zny3bh60pidg7w")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; Tests not included in release tarball + #:cargo-inputs (("rust-asn1-rs" ,rust-asn1-rs-0.6) + ("rust-data-encoding" ,rust-data-encoding-2) + ("rust-der-parser" ,rust-der-parser-9) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-nom" ,rust-nom-7) + ("rust-oid-registry" ,rust-oid-registry-0.7) + ("rust-ring" ,rust-ring-0.17) + ("rust-rusticata-macros" ,rust-rusticata-macros-4) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-time" ,rust-time-0.3)))) + (home-page "https://github.com/rusticata/x509-parser") + (synopsis "Parser for the X.509 v3 format (RFC 5280 certificates)") + (description "This crate provides a parser for the X.509 v3 format (RFC +5280 certificates).") + (license (list license:expat license:asl2.0)))) + (define-public rust-x509-parser-0.15 (package + (inherit rust-x509-parser-0.16) (name "rust-x509-parser") (version "0.15.1") (source (origin @@ -2021,7 +2052,6 @@ Public Key Infrastructure Certificate format as described in RFC 5280.") (sha256 (base32 "1nk3ryam7yzsza735xdypkv1i4c35gqlygax5jyr74bbnsjznsbh")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-asn1-rs" ,rust-asn1-rs-0.5) @@ -2033,12 +2063,7 @@ Public Key Infrastructure Certificate format as described in RFC 5280.") ("rust-ring" ,rust-ring-0.16) ("rust-rusticata-macros" ,rust-rusticata-macros-4) ("rust-thiserror" ,rust-thiserror-1) - ("rust-time" ,rust-time-0.3)))) - (home-page "https://github.com/rusticata/x509-parser") - (synopsis "X.509 parser written in pure Rust") - (description "This crate provides a parser for the X.509 v3 format (RFC -5280 certificates).") - (license (list license:expat license:asl2.0)))) + ("rust-time" ,rust-time-0.3)))))) (define-public rust-x509-parser-0.14 (package |