1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 00:54:46 +00:00
nixpkgs/pkgs/development/tools/rust/cargo-raze/default.nix
Benjamin Hipple eb11feaa0b treewide: change fetchCargoTarball default to opt-out
Changes the default fetcher in the Rust Platform to be the newer
`fetchCargoTarball`, and changes every application using the current default to
instead opt out.

This commit does not change any hashes or cause any rebuilds. Once integrated,
we will start deleting the opt-outs and recomputing hashes.

See #79975 for details.
2020-02-13 22:41:37 -08:00

35 lines
951 B
Nix

{ stdenv, fetchFromGitHub, rustPlatform
, pkgconfig, 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";
# Delete this on next update; see #79975 for details
legacyCargoFetcher = true;
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;
};
}