2019-03-08 06:26:06 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform
|
|
|
|
, pkgconfig, curl, libgit2, openssl, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-raze";
|
2019-12-16 17:29:41 +00:00
|
|
|
version = "0.2.10";
|
2019-03-08 06:26:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-12-16 17:29:41 +00:00
|
|
|
sha256 = "1fznh8jygzyzphw7762qc2jv0370z7qjqk1vkql0g246iqby8pq9";
|
2019-03-08 06:26:06 +00:00
|
|
|
};
|
|
|
|
sourceRoot = "source/impl";
|
|
|
|
|
2020-02-14 02:00:26 +00:00
|
|
|
# Delete this on next update; see #79975 for details
|
|
|
|
legacyCargoFetcher = true;
|
|
|
|
|
2019-03-08 06:26:06 +00:00
|
|
|
cargoSha256 = "06rl7v0f1lgj9ii07fcnaxmhn28ckr03cpf5b93q8ripm5qh7my9";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ curl libgit2 openssl ]
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin Security;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Generate Bazel BUILD files from Cargo dependencies";
|
|
|
|
homepage = https://github.com/google/cargo-raze;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ elasticdog ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|