1{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, stdenv, Security }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "cargo-dephell";
5 version = "0.5.1";
6
7 src = fetchFromGitHub {
8 owner = "mimoo";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "1v3psrkjhgbkq9lm3698ac77qgk090jbly4r187nryj0vcmf9s1l";
12 };
13
14 cargoSha256 = "0fwj782dbyj3ps16hxmq61drf8714863jb0d3mhivn3zlqawyyil";
15
16 nativeBuildInputs = [ pkg-config ];
17
18 buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
19
20 meta = with lib; {
21 description = "A tool to analyze the third-party dependencies imported by a rust crate or rust workspace";
22 homepage = "https://github.com/mimoo/cargo-dephell";
23 license = with licenses; [ mit /* or */ asl20 ];
24 maintainers = with maintainers; [ figsoda ];
25 };
26}