nixpkgs/pkgs/tools/package-management/cargo-tree/default.nix

25 lines
812 B
Nix
Raw Normal View History

2018-05-22 13:04:50 -07:00
{ stdenv, lib, rustPlatform, fetchFromGitHub, pkgconfig, cmake, curl, libiconv, darwin }:
rustPlatform.buildRustPackage rec {
name = "cargo-tree-${version}";
2018-09-01 22:15:36 -07:00
version = "0.20.0";
2018-05-22 13:04:50 -07:00
src = fetchFromGitHub {
owner = "sfackler";
repo = "cargo-tree";
rev = "v${version}";
2018-09-01 22:15:36 -07:00
sha256 = "197kbr7q7aqzv5l8xilz60m50rbkmfwfswyd6ka7w83j5bi88jw3";
2018-05-22 13:04:50 -07:00
};
2018-09-01 22:15:36 -07:00
cargoSha256 = "1v84cj42ch49jrigrkivg99hzxa79jii8s3fddjk23hi1xx1c35y";
2018-05-22 13:04:50 -07: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 ];
maintainers = with maintainers; [ jD91mZM2 ];
};
}