Unverified Commit c4aa8299 authored by Winter's avatar Winter Committed by GitHub
Browse files

[Backport release-25.05] cargo-bazel: add libz as buildInput for darwin (#409731)

parents 326ecfa0 5b841354
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
{
  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=";