mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
cargo-tree: init at 0.18.0 (#40924)
This commit is contained in:
parent
14285a7806
commit
71da438f21
24
pkgs/tools/package-management/cargo-tree/default.nix
Normal file
24
pkgs/tools/package-management/cargo-tree/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ stdenv, lib, rustPlatform, fetchFromGitHub, pkgconfig, cmake, curl, libiconv, darwin }:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
name = "cargo-tree-${version}";
|
||||
version = "0.18.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sfackler";
|
||||
repo = "cargo-tree";
|
||||
rev = "v${version}";
|
||||
|
||||
sha256 = "0lq14w11a4zl0rvv7rsd79k51dwk3w78fbsi6klkqknad02qmx3r";
|
||||
};
|
||||
|
||||
cargoSha256 = "0zi4qbadlx4l6zhb0f892ic3mdmyjjjzrirks18pl6qrn3dgny1x";
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -6916,6 +6916,7 @@ with pkgs;
|
|||
|
||||
cargo-edit = callPackage ../tools/package-management/cargo-edit { };
|
||||
cargo-release = callPackage ../tools/package-management/cargo-release { };
|
||||
cargo-tree = callPackage ../tools/package-management/cargo-tree { };
|
||||
|
||||
cargo-fuzz = callPackage ../development/tools/rust/cargo-fuzz { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue