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 @@ types as proposed in RFC 1158.")
(base32 (base32
"1gjycyl2283525abks98bhxa4r259m617xfm5z52p3p3c8ry9d9f")))) "1gjycyl2283525abks98bhxa4r259m617xfm5z52p3p3c8ry9d9f"))))
(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 'delete-vendored-zlib ;; Build dependencies:
; (lambda _ ("rust-cc" ,rust-cc-1.0)
; (delete-file-recursively "src/zlib") ("rust-pkg-config" ,rust-pkg-config-0.3)
; #t))))) ("rust-vcpkg" ,rust-vcpkg-0.2))
;(inputs #:phases
; `(("pkg-config" ,pkg-config) (modify-phases %standard-phases
; ("zlib" ,zlib))) (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") (home-page "https://github.com/rust-lang/libz-sys")
(synopsis "Bindings to the system libz library") (synopsis "Bindings to the system libz library")
(description (description
"This package provides bindings to the system @code{libz} library (also "This package provides bindings to the system @code{libz} library (also
known as zlib).") known as zlib).")
(properties '((hidden? . #t)))
(license (list license:asl2.0 (license (list license:asl2.0
license:expat)))) license:expat))))