Merge pull request #230459 from ConsumingChaos/cargo-bazel

cargo-bazel: init at 0.8.0
This commit is contained in:
Matthias Beyer
2023-10-11 18:19:59 +02:00
committed by GitHub
3 changed files with 39 additions and 0 deletions
+6
View File
@@ -14798,6 +14798,12 @@
githubId = 42619;
name = "Wei-Ming Yang";
};
rickvanprim = {
email = "me@rickvanprim.com";
github = "rickvanprim";
githubId = 13792812;
name = "James Leitch";
};
rickynils = {
email = "rickynils@gmail.com";
github = "rickynils";
@@ -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 ];
};
}
+3
View File
@@ -17098,6 +17098,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 { };