Files
nixpkgs/pkgs/by-name/ca/cargo-bazel/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

33 lines
847 B
Nix

{
lib,
stdenv,
fetchCrate,
rustPlatform,
libz,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-bazel";
version = "0.8.0";
src = fetchCrate {
inherit pname version;
hash = "sha256-FS1WFlK0YNq1QCi3S3f5tMN+Bdcfx2dxhDKRLXLcios=";
};
buildInputs = lib.optional stdenv.hostPlatform.isDarwin libz;
cargoHash = "sha256-E/yF42Vx9tv8Ik1j23El3+fI19ZGzq6nikVMATY7m3E=";
# `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 ];
};
}