aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-09-17 16:54:31 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-09-17 19:40:08 +0300
commit956e4aedeabc705411e37a5922f965fec2474c0a (patch)
tree7402fc28bb95e6578660b44bff4079a642cd2e35 /gnu
parent5e9fdf91896ae03d86cb1c5c98768b8d598646db (diff)
downloadpatches-956e4aedeabc705411e37a5922f965fec2474c0a.tar
patches-956e4aedeabc705411e37a5922f965fec2474c0a.tar.gz
gnu: Add rust-openssl-sys.
* gnu/packages/crates-io.scm (rust-openssl-sys): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm40
1 files changed, 40 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 71c69a5d66..27fdaa96a7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -30,6 +30,7 @@
#:use-module (gnu packages llvm)
#:use-module (gnu packages maths)
#:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages tls)
#:use-module (gnu packages web))
;;;
@@ -2211,6 +2212,45 @@ system for OpenSSL.")
(license (list license:asl2.0
license:expat))))
+(define-public rust-openssl-sys
+ (package
+ (name "rust-openssl-sys")
+ (version "0.9.49")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "openssl-sys" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1168vivyqbzaxl48bvv9r1x714c03f5c1za8pv5x8fyj9gjxkypl"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-autocfg" ,rust-autocfg)
+ ("rust-libc" ,rust-libc))
+ #:cargo-development-inputs
+ (("rust-autocfg" ,rust-autocfg)
+ ("rust-cc" ,rust-cc)
+ ("rust-openssl-src" ,rust-openssl-src)
+ ("rust-pkg-config" ,rust-pkg-config)
+ ("rust-vcpkg" ,rust-vcpkg))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'find-openssl
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((openssl (assoc-ref inputs "openssl")))
+ (setenv "OPENSSL_DIR" openssl))
+ #t)))))
+ (inputs
+ `(("openssl" ,openssl)
+ ("pkg-config" ,pkg-config)))
+ (home-page "https://github.com/sfackler/rust-openssl")
+ (synopsis "FFI bindings to OpenSSL")
+ (description
+ "This package provides FFI bindings to OpenSSL for use in rust crates.")
+ (license license:expat)))
+
(define-public rust-owning-ref
(package
(name "rust-owning-ref")