nixpkgs/pkgs/development/tools/rust/cargo-raze/default.nix

33 lines
1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, rustPlatform
, pkg-config, curl, libgit2, openssl, Security }:
2019-03-08 06:26:06 +00:00
rustPlatform.buildRustPackage rec {
pname = "cargo-raze";
2021-04-15 11:28:21 +00:00
version = "0.12.0";
2019-03-08 06:26:06 +00:00
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "v${version}";
2021-04-15 11:28:21 +00:00
sha256 = "161m4y6i4sgqi9mg3f3348f5cr0m45vhix4a4bcw54wnmhiklnnl";
2019-03-08 06:26:06 +00:00
};
sourceRoot = "source/impl";
2021-04-15 11:28:21 +00:00
cargoSha256 = "1vlywdq0bx6b1k3w1grisca0hvv2s4s88yxq7bil8nhm5ghjgxdr";
2019-03-08 06:26:06 +00:00
nativeBuildInputs = [ pkg-config ];
2019-03-08 06:26:06 +00:00
buildInputs = [ curl libgit2 openssl ]
++ lib.optional stdenv.isDarwin Security;
2019-03-08 06:26:06 +00:00
# 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;
2019-03-08 06:26:06 +00:00
meta = with lib; {
2019-03-08 06:26:06 +00:00
description = "Generate Bazel BUILD files from Cargo dependencies";
homepage = "https://github.com/google/cargo-raze";
2019-03-08 06:26:06 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ elasticdog ];
};
}