[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/23: gnu: Add rust-libssh2-sys.
From: |
guix-commits |
Subject: |
18/23: gnu: Add rust-libssh2-sys. |
Date: |
Tue, 17 Sep 2019 12:40:37 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit b81e1ea589ccf807d56d03002c0b16f564dc2629
Author: Efraim Flashner <address@hidden>
Date: Tue Sep 17 17:36:13 2019 +0300
gnu: Add rust-libssh2-sys.
* gnu/packages/crates-io.scm (rust-libssh2-sys): New variable.
---
gnu/packages/crates-io.scm | 47 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4194e4c..1fd2094 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -31,6 +31,7 @@
#:use-module (gnu packages llvm)
#:use-module (gnu packages maths)
#:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages ssh)
#:use-module (gnu packages tls)
#:use-module (gnu packages web))
@@ -1592,6 +1593,52 @@ allows loading dynamic libraries (also known as shared
libraries) as well as use
functions and static variables these libraries contain.")
(license license:isc)))
+(define-public rust-libssh2-sys
+ (package
+ (name "rust-libssh2-sys")
+ (version "0.2.12")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "libssh2-sys" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1zb6gsw795nq848nk5x2smzpfnn1s15wjlzjnvr8ihlz2l5x2549"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-libc" ,rust-libc)
+ ("rust-libz-sys" ,rust-libz-sys)
+ ("rust-openssl-sys" ,rust-openssl-sys))
+ #:cargo-development-inputs
+ (("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))
+ (delete-file-recursively "libssh2")
+ (setenv "LIBSSH2_SYS_USE_PKG_CONFIG" "1")
+ #t)))))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("libssh2" ,libssh2)
+ ("openssl" ,openssl)
+ ("zlib" ,zlib)))
+ (home-page "https://github.com/alexcrichton/ssh2-rs")
+ (synopsis "Native bindings to the libssh2 library")
+ (description
+ "This package provides native rust bindings to the @code{libssh2}
library.")
+ (license (list license:asl2.0
+ license:expat))))
+
+
(define-public rust-lock-api
(package
(name "rust-lock-api")
- 07/23: gnu: Add rust-num-traits-0.1., (continued)
- 07/23: gnu: Add rust-num-traits-0.1., guix-commits, 2019/09/17
- 05/23: gnu: Add rust-term., guix-commits, 2019/09/17
- 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 <=
- 11/23: gnu: Add rust-libnghttp2-sys., guix-commits, 2019/09/17
- 16/23: gnu: Add rust-openssl-sys., guix-commits, 2019/09/17
- 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