cargo-bazel: add libz as buildInput for darwin (#408397)

This commit is contained in:
Aleksana
2025-05-22 19:37:49 +08:00
committed by GitHub
+4
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=";