2023-10-19 13:55:26 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchCrate
|
|
|
|
, rustPlatform
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-bazel";
|
|
|
|
version = "0.8.0";
|
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-FS1WFlK0YNq1QCi3S3f5tMN+Bdcfx2dxhDKRLXLcios=";
|
2023-10-19 13:55:26 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
cargoHash = "sha256-+PVNB/apG5AR236Ikqt+JTz20zxc0HUi7z6BU6xq/Fw=";
|
2023-10-19 13:55:26 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
# `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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cargo-bazel";
|
2023-10-19 13:55:26 +00:00
|
|
|
homepage = "https://github.com/bazelbuild/rules_rust";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rickvanprim ];
|
|
|
|
};
|
|
|
|
}
|