cargo-bazel: init at 0.8.0

This commit is contained in:
James Leitch 2023-08-12 16:16:50 -07:00
parent faa21821a7
commit 8400b14039
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{ lib
, stdenv
, fetchCrate
, rustPlatform
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-bazel";
version = "0.8.0";
src = fetchCrate {
inherit pname version;
sha256 = "FS1WFlK0YNq1QCi3S3f5tMN+Bdcfx2dxhDKRLXLcios=";
};
cargoSha256 = "+PVNB/apG5AR236Ikqt+JTz20zxc0HUi7z6BU6xq/Fw=";
buildInputs = lib.optional stdenv.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";
homepage = "https://github.com/bazelbuild/rules_rust";
license = licenses.asl20;
maintainers = with maintainers; [ rickvanprim ];
};
}

View File

@ -17030,6 +17030,9 @@ with pkgs;
cargo-asm = callPackage ../development/tools/rust/cargo-asm {
inherit (darwin.apple_sdk.frameworks) Security;
};
cargo-bazel = callPackage ../development/tools/rust/cargo-bazel {
inherit (darwin.apple_sdk.frameworks) Security;
};
cargo-binutils = callPackage ../development/tools/rust/cargo-binutils { };
cargo-bloat = callPackage ../development/tools/rust/cargo-bloat { };
cargo-bolero = callPackage ../development/tools/rust/cargo-bolero { };