2018-05-22 21:04:50 +01:00
|
|
|
{ stdenv, lib, rustPlatform, fetchFromGitHub, pkgconfig, cmake, curl, libiconv, darwin }:
|
2020-02-15 06:06:59 +00:00
|
|
|
|
2018-05-22 21:04:50 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "cargo-tree";
|
2020-02-14 22:34:27 +00:00
|
|
|
version = "0.29.0";
|
2018-05-22 21:04:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sfackler";
|
|
|
|
repo = "cargo-tree";
|
2020-01-26 19:11:58 +00:00
|
|
|
rev = "v${version}";
|
2020-02-14 22:34:27 +00:00
|
|
|
sha256 = "16k41pj66m2221n1v2szir7x7qwx4i0g3svck2c8cj76h0bqyy15";
|
2018-05-22 21:04:50 +01:00
|
|
|
};
|
|
|
|
|
2020-02-14 22:34:27 +00:00
|
|
|
cargoSha256 = "0762gdj4n5mlflhzynnny1h8z792zyxmb4kcn54jj7qzdask4qdy";
|
2018-05-22 21:04:50 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig cmake ];
|
|
|
|
buildInputs = [ curl ] ++ lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A cargo subcommand that visualizes a crate's dependency graph in a tree-like format";
|
|
|
|
license = with licenses; [ asl20 mit ];
|
2020-02-14 22:34:27 +00:00
|
|
|
maintainers = with maintainers; [ jD91mZM2 ma27 ];
|
2019-12-16 12:03:11 +00:00
|
|
|
homepage = "https://crates.io/crates/cargo-tree";
|
2018-05-22 21:04:50 +01:00
|
|
|
};
|
|
|
|
}
|