mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 22:16:32 +01:00
gnu: rust-libssh2-sys-0.2: Don't hide package.
* gnu/packages/crates-io.scm (rust-libssh2-sys-0.2)[arguments]: Add rust-libc-0.2, rust-libz-sys-1.0, rust-openssl-sys-0.9, rust-cc-1.0, rust-pkg-config-0.3, rust-vcpkg-0.2 to cargo-inputs. Add custom phase to unbundle vendored sources and set environment variables. [native-inputs]: Add libssh2, openssl, pkg-config, zlib. [properties]: Remove field.
This commit is contained in:
parent
0c85385450
commit
d7364e85e0
1 changed files with 33 additions and 17 deletions
|
@ -28,6 +28,7 @@ (define-module (gnu packages crates-io)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (gnu packages compression)
|
#:use-module (gnu packages compression)
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
|
#:use-module (gnu packages ssh)
|
||||||
#:use-module (gnu packages tls)
|
#:use-module (gnu packages tls)
|
||||||
#:use-module (gnu packages version-control))
|
#:use-module (gnu packages version-control))
|
||||||
|
|
||||||
|
@ -5688,27 +5689,42 @@ (define-public rust-libssh2-sys-0.2
|
||||||
(base32
|
(base32
|
||||||
"1zb6gsw795nq848nk5x2smzpfnn1s15wjlzjnvr8ihlz2l5x2549"))))
|
"1zb6gsw795nq848nk5x2smzpfnn1s15wjlzjnvr8ihlz2l5x2549"))))
|
||||||
(build-system cargo-build-system)
|
(build-system cargo-build-system)
|
||||||
;(arguments
|
(arguments
|
||||||
; `(#:phases
|
`(#:skip-build? #t ; it wants rust-openssl-src
|
||||||
; (modify-phases %standard-phases
|
#:cargo-inputs
|
||||||
; (add-after 'unpack 'find-openssl
|
(("rust-libc" ,rust-libc-0.2)
|
||||||
; (lambda* (#:key inputs #:allow-other-keys)
|
("rust-libz-sys" ,rust-libz-sys-1.0)
|
||||||
; (let ((openssl (assoc-ref inputs "openssl")))
|
("rust-openssl-sys" ,rust-openssl-sys-0.9)
|
||||||
; (setenv "OPENSSL_DIR" openssl))
|
;; Build dependencies:
|
||||||
; (delete-file-recursively "libssh2")
|
("rust-cc" ,rust-cc-1.0)
|
||||||
; (setenv "LIBSSH2_SYS_USE_PKG_CONFIG" "1")
|
("rust-pkg-config" ,rust-pkg-config-0.3)
|
||||||
; #t)))))
|
("rust-vcpkg" ,rust-vcpkg-0.2))
|
||||||
;(native-inputs
|
#:phases
|
||||||
; `(("pkg-config" ,pkg-config)))
|
(modify-phases %standard-phases
|
||||||
;(inputs
|
(add-after 'configure 'dont-vendor-sources
|
||||||
; `(("libssh2" ,libssh2)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
; ("openssl" ,openssl)
|
(let ((openssl (assoc-ref inputs "openssl")))
|
||||||
; ("zlib" ,zlib)))
|
(setenv "OPENSSL_DIR" openssl))
|
||||||
|
(delete-file-recursively "libssh2")
|
||||||
|
(delete-file-recursively
|
||||||
|
(string-append "guix-vendor/rust-libssh2-sys-"
|
||||||
|
,(package-version rust-libssh2-sys-0.2)
|
||||||
|
".crate/libssh2"))
|
||||||
|
(delete-file-recursively
|
||||||
|
(string-append "guix-vendor/rust-libz-sys-"
|
||||||
|
,(package-version rust-libz-sys-1.0)
|
||||||
|
".crate/src/zlib"))
|
||||||
|
(setenv "LIBSSH2_SYS_USE_PKG_CONFIG" "1")
|
||||||
|
#t)))))
|
||||||
|
(native-inputs
|
||||||
|
`(("libssh2" ,libssh2)
|
||||||
|
("openssl" ,openssl)
|
||||||
|
("pkg-config" ,pkg-config)
|
||||||
|
("zlib" ,zlib)))
|
||||||
(home-page "https://github.com/alexcrichton/ssh2-rs")
|
(home-page "https://github.com/alexcrichton/ssh2-rs")
|
||||||
(synopsis "Native bindings to the libssh2 library")
|
(synopsis "Native bindings to the libssh2 library")
|
||||||
(description
|
(description
|
||||||
"This package provides native rust bindings to the @code{libssh2} library.")
|
"This package provides native rust bindings to the @code{libssh2} library.")
|
||||||
(properties '((hidden? . #t)))
|
|
||||||
(license (list license:asl2.0
|
(license (list license:asl2.0
|
||||||
license:expat))))
|
license:expat))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue