Merge pull request #138574 from figsoda/cargo-dephell

cargo-dephell: init at 0.5.1
This commit is contained in:
figsoda 2021-09-19 21:49:27 -04:00 committed by GitHub
commit da01cce16d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, stdenv, Security }:
rustPlatform.buildRustPackage rec {
pname = "cargo-dephell";
version = "0.5.1";
src = fetchFromGitHub {
owner = "mimoo";
repo = pname;
rev = "v${version}";
sha256 = "1v3psrkjhgbkq9lm3698ac77qgk090jbly4r187nryj0vcmf9s1l";
};
cargoSha256 = "0fwj782dbyj3ps16hxmq61drf8714863jb0d3mhivn3zlqawyyil";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
meta = with lib; {
description = "A tool to analyze the third-party dependencies imported by a rust crate or rust workspace";
homepage = "https://github.com/mimoo/cargo-dephell";
license = with licenses; [ mit /* or */ asl20 ];
maintainers = with maintainers; [ figsoda ];
};
}

View File

@ -12397,6 +12397,9 @@ with pkgs;
cargo-deny = callPackage ../development/tools/rust/cargo-deny {
inherit (darwin.apple_sdk.frameworks) Security;
};
cargo-dephell = callPackage ../development/tools/rust/cargo-dephell {
inherit (darwin.apple_sdk.frameworks) Security;
};
cargo-diet = callPackage ../development/tools/rust/cargo-diet { };
cargo-embed = callPackage ../development/tools/rust/cargo-embed {
inherit (darwin.apple_sdk.frameworks) AppKit;