gnu: rust-libz-sys-1.0: Don't hide package.

* gnu/packages/crates-io.scm (rust-libz-sys-1.0)[arguments]: Add
rust-libc-0.2, rust-cc-1.0, rust-pkg-config-0.3, rust-vcpkg-0.2 to
cargo-inputs. Add custom phase to delete vendored source.
[native-inputs]: Add pkg-config, zlib.
[properties]: Remove field.
This commit is contained in:
Efraim Flashner 2020-01-21 18:15:50 +02:00
parent 8bbf9d390f
commit 904e8a4697
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -6586,22 +6586,31 @@ (define-public rust-libz-sys-1.0
(base32
"1gjycyl2283525abks98bhxa4r259m617xfm5z52p3p3c8ry9d9f"))))
(build-system cargo-build-system)
;(arguments
; `(#:phases
; (modify-phases %standard-phases
; (add-after 'unpack 'delete-vendored-zlib
; (lambda _
; (delete-file-recursively "src/zlib")
; #t)))))
;(inputs
; `(("pkg-config" ,pkg-config)
; ("zlib" ,zlib)))
(arguments
`(#:cargo-inputs
(("rust-libc" ,rust-libc-0.2)
;; Build dependencies:
("rust-cc" ,rust-cc-1.0)
("rust-pkg-config" ,rust-pkg-config-0.3)
("rust-vcpkg" ,rust-vcpkg-0.2))
#:phases
(modify-phases %standard-phases
(add-after 'configure 'delete-vendored-zlib
(lambda _
(delete-file-recursively "src/zlib")
(delete-file-recursively
(string-append "guix-vendor/rust-libz-sys-"
,(package-version rust-libz-sys-1.0)
".crate/src/zlib"))
#t)))))
(native-inputs
`(("pkg-config" ,pkg-config)
("zlib" ,zlib)))
(home-page "https://github.com/rust-lang/libz-sys")
(synopsis "Bindings to the system libz library")
(description
"This package provides bindings to the system @code{libz} library (also
known as zlib).")
(properties '((hidden? . #t)))
(license (list license:asl2.0
license:expat))))