depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-raze/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

30 lines
830 B
Nix

{ lib, stdenv, fetchFromGitHub, rustPlatform
, pkg-config, curl, libgit2, openssl, Security }:
rustPlatform.buildRustPackage rec {
pname = "cargo-raze";
version = "0.2.10";
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "v${version}";
sha256 = "1fznh8jygzyzphw7762qc2jv0370z7qjqk1vkql0g246iqby8pq9";
};
sourceRoot = "source/impl";
cargoSha256 = "1z20xc508a3slc1ii3hy09swvlyib14zwf9akxc0h24d5m48as1c";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ curl libgit2 openssl ]
++ lib.optional stdenv.isDarwin Security;
doCheck = true;
meta = with lib; {
description = "Generate Bazel BUILD files from Cargo dependencies";
homepage = "https://github.com/google/cargo-raze";
license = licenses.asl20;
maintainers = with maintainers; [ elasticdog ];
};
}