cargo-raze: 0.12.0 -> 0.16.0

This commit is contained in:
Theodore Ni 2022-11-15 10:45:29 -08:00
parent f2d9232995
commit a428cc4a2d
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474
2 changed files with 14 additions and 11 deletions

View file

@ -1,32 +1,36 @@
{ lib, stdenv, fetchFromGitHub, rustPlatform
, pkg-config, curl, libgit2, openssl, Security }:
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, pkg-config
, curl
, libgit2
, openssl
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-raze";
version = "0.12.0";
version = "0.16.0";
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "v${version}";
sha256 = "161m4y6i4sgqi9mg3f3348f5cr0m45vhix4a4bcw54wnmhiklnnl";
hash = "sha256-ip0WuBn1b7uN/pAhOl5tfmToK73ZSHK7rucdtufsbCQ=";
};
sourceRoot = "source/impl";
cargoSha256 = "1vlywdq0bx6b1k3w1grisca0hvv2s4s88yxq7bil8nhm5ghjgxdr";
cargoHash = "sha256-hNZgQwhm4UPqmANplZGxG0DYHa31tu06nmqYaCA7Vdg=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libgit2
openssl
(curl.override { inherit openssl; })
curl
]
++ lib.optional stdenv.isDarwin Security;
# thread 'main' panicked at 'Cannot ping mock server.: "cannot send request to mock server: cannot send request to mock server: failed to resolve host name"'
# __darwinAllowLocalNetworking does not fix the panic
doCheck = !stdenv.isDarwin;
meta = with lib; {
description = "Generate Bazel BUILD files from Cargo dependencies";
homepage = "https://github.com/google/cargo-raze";

View file

@ -15139,7 +15139,6 @@ with pkgs;
cargo-profiler = callPackage ../development/tools/rust/cargo-profiler {};
cargo-raze = callPackage ../development/tools/rust/cargo-raze {
inherit (darwin.apple_sdk.frameworks) Security;
openssl = openssl_1_1;
};
cargo-readme = callPackage ../development/tools/rust/cargo-readme {};
cargo-semver-checks = callPackage ../development/tools/rust/cargo-semver-checks {