summaryrefslogtreecommitdiff
path: root/gnu/packages/crates-tls.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-11-20 20:44:46 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-11-28 11:05:32 +0200
commitc6586985ba1d95059d25cc05392de372d5f3cde2 (patch)
tree02453c0b6c792a823b779ee1cd13445d536c7c4b /gnu/packages/crates-tls.scm
parent6595340031977eb078fd7fc68b6e7b3eb95c1237 (diff)
gnu: Add rust-rustls-ffi-0.14.
* gnu/packages/crates-tls.scm (rust-rustls-ffi-0.14): New variable. (rust-rustls-ffi-0.8): Inherit from rust-rustls-ffi-0.14. Change-Id: I7249cc67852b2ba159678d13a8d2215c8cf0247a
Diffstat (limited to 'gnu/packages/crates-tls.scm')
-rw-r--r--gnu/packages/crates-tls.scm40
1 files changed, 34 insertions, 6 deletions
diff --git a/gnu/packages/crates-tls.scm b/gnu/packages/crates-tls.scm
index 0ac470488b0..e8cb24f792a 100644
--- a/gnu/packages/crates-tls.scm
+++ b/gnu/packages/crates-tls.scm
@@ -1586,8 +1586,41 @@ grammars and BER/DER encodings, for example.")
("rust-untrusted" ,rust-untrusted-0.6)
("rust-webpki" ,rust-webpki-0.18))))))
+(define-public rust-rustls-ffi-0.14
+ (package
+ (name "rust-rustls-ffi")
+ (version "0.14.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "rustls-ffi" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1cdpnx205m3bc7sn6gvaizlsb8ayipf1l061das37mf7n4sw157s"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-test-flags
+ '("--release" "--"
+ "--skip=acceptor::tests::test_acceptor_success")
+ #:cargo-inputs
+ (("rust-libc" ,rust-libc-0.2)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-rustls" ,rust-rustls-0.23)
+ ("rust-rustls-pemfile" ,rust-rustls-pemfile-2)
+ ("rust-rustls-pki-types" ,rust-rustls-pki-types-1)
+ ("rust-rustls-platform-verifier" ,rust-rustls-platform-verifier-0.3)
+ ("rust-rustls-webpki" ,rust-rustls-webpki-0.102))
+ #:cargo-development-inputs (("rust-regex" ,rust-regex-1)
+ ("rust-toml" ,rust-toml-0.6))))
+ (home-page "https://github.com/rustls/rustls-ffi")
+ (synopsis "Rustls bindings for non-Rust languages")
+ (description
+ "This package provides Rustls bindings for non-Rust languages.")
+ (license (list license:asl2.0 license:isc license:expat))))
+
(define-public rust-rustls-ffi-0.8
(package
+ (inherit rust-rustls-ffi-0.14)
(name "rust-rustls-ffi")
(version "0.8.2")
(source (origin
@@ -1596,7 +1629,6 @@ grammars and BER/DER encodings, for example.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "06kqrvm1d5ps9pml26zdd2hm8hh20j6svwvqibpnx7m5rh3jg9cx"))))
- (build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-libc" ,rust-libc-0.2)
@@ -1615,11 +1647,7 @@ grammars and BER/DER encodings, for example.")
;; a version requirement for cbindgen.
(lambda _
(substitute* "Cargo.toml"
- (("0\\.19\\.0") "*")))))))
- (home-page "https://github.com/rustls/rustls-ffi")
- (synopsis "Rustls bindings for non-Rust languages")
- (description "Rustls bindings for non-Rust languages")
- (license (list license:asl2.0 license:isc license:expat))))
+ (("0\\.19\\.0") "*")))))))))
(define-public rust-rustls-native-certs-0.7
(package