cargo-bazel: add libz as buildInput for darwin

Add libz as build input to allow building cargo-bazel on darwin.
This commit is contained in:
Fiona Behrens 2025-05-18 15:51:40 +02:00
parent ea3daf0790
commit a952bd4a00

View file

@ -1,7 +1,9 @@
{
lib,
stdenv,
fetchCrate,
rustPlatform,
libz,
}:
rustPlatform.buildRustPackage rec {
@ -13,6 +15,8 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-FS1WFlK0YNq1QCi3S3f5tMN+Bdcfx2dxhDKRLXLcios=";
};
buildInputs = lib.optional stdenv.isDarwin libz;
useFetchCargoVendor = true;
cargoHash = "sha256-E/yF42Vx9tv8Ik1j23El3+fI19ZGzq6nikVMATY7m3E=";