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

25 lines
802 B
Nix
Raw Normal View History

2018-05-22 21:04:50 +01:00
{ stdenv, lib, rustPlatform, fetchFromGitHub, pkgconfig, cmake, curl, libiconv, darwin }:
rustPlatform.buildRustPackage rec {
2019-08-31 12:41:23 +01:00
pname = "cargo-tree";
2019-04-13 18:41:26 +01:00
version = "0.26.0";
2018-05-22 21:04:50 +01:00
src = fetchFromGitHub {
owner = "sfackler";
repo = "cargo-tree";
rev = "v${version}";
2019-04-13 18:41:26 +01:00
sha256 = "12z0sa7g79x46q2ybpy6i9rf1x4cnwajw8dsjzra2qhssyp8rp9c";
2018-05-22 21:04:50 +01:00
};
cargoSha256 = "0ibmgyiqa53m9xfvl726w1sq37lbdp7vzyc76gwcp1zvzkcv2860";
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 ];
maintainers = with maintainers; [ jD91mZM2 ];
};
}