From 904e8a4697873ef459fd8ba40aafae82e2affcf1 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 21 Jan 2020 18:15:50 +0200 Subject: 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. --- gnu/packages/crates-io.scm | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) (limited to 'gnu/packages') diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 163409c00d..e5c6b939dd 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -6586,22 +6586,31 @@ types as proposed in RFC 1158.") (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)))) -- cgit v1.2.3 r class='nohover'>AgeCommit message (Expand)Author 2019-03-14Merge branch 'staging' into core-updatesMarius Bakke 2019-03-13doc: Document the graphical installer some more....Ludovic Courtès 2018-12-16doc: Update mesboot graph without bootstrap-guile....Jan Nieuwenhuizen 2018-11-24doc: Update for bootstrap-mescc-tools change....Jan Nieuwenhuizen 2018-09-23doc: Describe the Reduced Binary Seed bootstrap....Jan Nieuwenhuizen