gnu: rust-curl-sys-0.4: Don't hide package.
* gnu/packages/crates-io.scm (rust-curl-sys-0.4)[source]: Remove bundled code. [arguments]: Add rust-libc-0.2, rust-libnghttp2-sys-0.1, rust-libz-sys-1.0, rust-openssl-sys-0.9, rust-winapi-0.3, rust-cc-1.0, rust-pkg-config-0.3, rust-vcpkg-0.2 to cargo-inputs. Add custom phase to find system openssl. [native-inputs]: Add pkg-config. [inputs]: Add curl, nghttp2, openssl, zlib. [properties]: Remove field.master
parent
e587a8086b
commit
b1ff69195a
|
@ -32,6 +32,7 @@
|
||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
#:use-module (gnu packages base)
|
#:use-module (gnu packages base)
|
||||||
#:use-module (gnu packages compression)
|
#:use-module (gnu packages compression)
|
||||||
|
#:use-module (gnu packages curl)
|
||||||
#:use-module (gnu packages fontutils)
|
#:use-module (gnu packages fontutils)
|
||||||
#:use-module (gnu packages freedesktop)
|
#:use-module (gnu packages freedesktop)
|
||||||
#:use-module (gnu packages glib)
|
#:use-module (gnu packages glib)
|
||||||
|
@ -4620,31 +4621,42 @@ Transparency logs for use with sct crate.")
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (crate-uri "curl-sys" version))
|
(uri (crate-uri "curl-sys" version))
|
||||||
(file-name (string-append name "-" version ".crate"))
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"02542zmvl3fpdqf7ai4cqnamm4albx9j645dkjx5qr1myq8ax42y"))))
|
"02542zmvl3fpdqf7ai4cqnamm4albx9j645dkjx5qr1myq8ax42y"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
'(begin (delete-file-recursively "curl") #t))))
|
||||||
(build-system cargo-build-system)
|
(build-system cargo-build-system)
|
||||||
;(arguments
|
(arguments
|
||||||
; `(#:phases
|
`(#:cargo-inputs
|
||||||
; (modify-phases %standard-phases
|
(("rust-libc" ,rust-libc-0.2)
|
||||||
; (add-after 'unpack 'find-openssl
|
("rust-libnghttp2-sys" ,rust-libnghttp2-sys-0.1)
|
||||||
; (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))
|
("rust-winapi" ,rust-winapi-0.3)
|
||||||
; #t)))))
|
("rust-cc" ,rust-cc-1.0)
|
||||||
;(native-inputs
|
("rust-pkg-config" ,rust-pkg-config-0.3)
|
||||||
; `(("pkg-config" ,pkg-config)))
|
("rust-vcpkg" ,rust-vcpkg-0.2))
|
||||||
;(inputs
|
#:phases
|
||||||
; `(("curl" ,curl)
|
(modify-phases %standard-phases
|
||||||
; ("nghttp2" ,nghttp2)
|
(add-after 'unpack 'find-openssl
|
||||||
; ("openssl" ,openssl)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
; ("zlib" ,zlib)))
|
(let ((openssl (assoc-ref inputs "openssl")))
|
||||||
|
(setenv "OPENSSL_DIR" openssl))
|
||||||
|
#t)))))
|
||||||
|
(native-inputs
|
||||||
|
`(("pkg-config" ,pkg-config)))
|
||||||
|
(inputs
|
||||||
|
`(("curl" ,curl)
|
||||||
|
("nghttp2" ,nghttp2)
|
||||||
|
("openssl" ,openssl)
|
||||||
|
("zlib" ,zlib)))
|
||||||
(home-page "https://github.com/alexcrichton/curl-rust")
|
(home-page "https://github.com/alexcrichton/curl-rust")
|
||||||
(synopsis "Native bindings to the libcurl library")
|
(synopsis "Native bindings to the libcurl library")
|
||||||
(description
|
(description
|
||||||
"This package provides native bindings to the @code{libcurl} library.")
|
"This package provides native bindings to the @code{libcurl} library.")
|
||||||
(properties '((hidden? . #t)))
|
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public rust-custom-derive-0.1
|
(define-public rust-custom-derive-0.1
|
||||||
|
|
Reference in New Issue