[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/23: gnu: Add rust-openssl-sys.
From: |
guix-commits |
Subject: |
16/23: gnu: Add rust-openssl-sys. |
Date: |
Tue, 17 Sep 2019 12:40:36 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 956e4aedeabc705411e37a5922f965fec2474c0a
Author: Efraim Flashner <address@hidden>
Date: Tue Sep 17 16:54:31 2019 +0300
gnu: Add rust-openssl-sys.
* gnu/packages/crates-io.scm (rust-openssl-sys): New variable.
---
gnu/packages/crates-io.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 71c69a5..27fdaa9 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")
- 06/23: gnu: Add rust-clang-sys-0.26., (continued)
- 06/23: gnu: Add rust-clang-sys-0.26., guix-commits, 2019/09/17
- 01/23: gnu: Add rust-percent-encoding-1., guix-commits, 2019/09/17
- 02/23: gnu: Add rust-rustc-hash., guix-commits, 2019/09/17
- 08/23: gnu: Add rust-dtoa-0.2., guix-commits, 2019/09/17
- 09/23: gnu: Add rust-itoa-0.1., guix-commits, 2019/09/17
- 22/23: gnu: Add rust-futures-core-preview., guix-commits, 2019/09/17
- 13/23: gnu: Add rust-backtrace-sys., guix-commits, 2019/09/17
- 21/23: gnu: Add rust-unreachable., guix-commits, 2019/09/17
- 18/23: gnu: Add rust-libssh2-sys., guix-commits, 2019/09/17
- 11/23: gnu: Add rust-libnghttp2-sys., guix-commits, 2019/09/17
- 16/23: gnu: Add rust-openssl-sys.,
guix-commits <=
- 17/23: gnu: Add rust-curl-sys., guix-commits, 2019/09/17
- 15/23: gnu: Add rust-openssl-src., guix-commits, 2019/09/17
- 19/23: gnu: Add rust-libgit2-sys., guix-commits, 2019/09/17
- 04/23: gnu: Add rust-strsim-0.8., guix-commits, 2019/09/17
- 10/23: gnu: Add rust-lock-api., guix-commits, 2019/09/17
- 12/23: gnu: Add rust-libz-sys., guix-commits, 2019/09/17
- 14/23: gnu: Add rust-dirs., guix-commits, 2019/09/17
- 20/23: gnu: Add rust-libgit2-sys-0.7., guix-commits, 2019/09/17
- 23/23: gnu: Add rust-futures-sink-preview., guix-commits, 2019/09/17