From faa21821a7253cc88bc003def16c1ef200ec2311 Mon Sep 17 00:00:00 2001 From: James Leitch Date: Sat, 12 Aug 2023 16:16:44 -0700 Subject: [PATCH 1/2] maintainers: add rickvanprim --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 5b1c63beb1c6..2405f86fb3cd 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -14343,6 +14343,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"; From 8400b1403977d28c7c95a8e88885d667c3bcbe19 Mon Sep 17 00:00:00 2001 From: James Leitch Date: Sat, 12 Aug 2023 16:16:50 -0700 Subject: [PATCH 2/2] cargo-bazel: init at 0.8.0 --- .../tools/rust/cargo-bazel/default.nix | 30 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 3 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/tools/rust/cargo-bazel/default.nix diff --git a/pkgs/development/tools/rust/cargo-bazel/default.nix b/pkgs/development/tools/rust/cargo-bazel/default.nix new file mode 100644 index 000000000000..26409d25002b --- /dev/null +++ b/pkgs/development/tools/rust/cargo-bazel/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d03d105649ec..e821aac9c6e1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };