nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at fix-function-merge 31 lines 835 B view raw
1{ lib 2, stdenv 3, fetchCrate 4, rustPlatform 5, Security 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "cargo-bazel"; 10 version = "0.8.0"; 11 12 src = fetchCrate { 13 inherit pname version; 14 hash = "sha256-FS1WFlK0YNq1QCi3S3f5tMN+Bdcfx2dxhDKRLXLcios="; 15 }; 16 17 cargoHash = "sha256-+PVNB/apG5AR236Ikqt+JTz20zxc0HUi7z6BU6xq/Fw="; 18 19 buildInputs = lib.optional stdenv.isDarwin Security; 20 21 # `test_data` is explicitly excluded from the package published to crates.io, so tests cannot be run 22 doCheck = false; 23 24 meta = with lib; { 25 description = "Part of the `crate_universe` collection of tools which use Cargo to generate build targets for Bazel"; 26 mainProgram = "cargo-bazel"; 27 homepage = "https://github.com/bazelbuild/rules_rust"; 28 license = licenses.asl20; 29 maintainers = with maintainers; [ rickvanprim ]; 30 }; 31}