depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-bazel/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

31 lines
848 B
Nix

{ lib
, stdenv
, fetchCrate
, rustPlatform
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-bazel";
version = "0.8.0";
src = fetchCrate {
inherit pname version;
hash = "sha256-FS1WFlK0YNq1QCi3S3f5tMN+Bdcfx2dxhDKRLXLcios=";
};
cargoHash = "sha256-+PVNB/apG5AR236Ikqt+JTz20zxc0HUi7z6BU6xq/Fw=";
buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
# `test_data` is explicitly excluded from the package published to crates.io, so tests cannot be run
doCheck = false;
meta = with lib; {
description = "Part of the `crate_universe` collection of tools which use Cargo to generate build targets for Bazel";
mainProgram = "cargo-bazel";
homepage = "https://github.com/bazelbuild/rules_rust";
license = licenses.asl20;
maintainers = with maintainers; [ rickvanprim ];
};
}