cargo-duplicates: init at 0.5.1

https://github.com/Keruspe/cargo-duplicates
This commit is contained in:
figsoda 2023-06-20 11:47:21 -04:00
parent 2c9ecd1f04
commit 3309ff781b
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{ lib
, rustPlatform
, fetchFromGitHub
, curl
, pkg-config
, libgit2
, openssl
, zlib
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-duplicates";
version = "0.5.1";
src = fetchFromGitHub {
owner = "Keruspe";
repo = "cargo-duplicates";
rev = "v${version}";
hash = "sha256-e0cegK4obUVIJyx5XKF+xicvkRvQwuObwB8tprrJnrw=";
};
cargoHash = "sha256-i1IyHCa/w4DOGlPWjDE4IbVm3s/40DIwjwUGIMTYH4Y=";
nativeBuildInputs = [
curl
pkg-config
];
buildInputs = [
curl
libgit2
openssl
zlib
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
meta = with lib; {
description = "A cargo subcommand for displaying when different versions of a same dependency are pulled in";
homepage = "https://github.com/Keruspe/cargo-duplicates";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}

View File

@ -16522,6 +16522,7 @@ with pkgs;
cargo-deb = callPackage ../development/tools/rust/cargo-deb { };
cargo-deps = callPackage ../development/tools/rust/cargo-deps { };
cargo-docset = callPackage ../development/tools/rust/cargo-docset { };
cargo-duplicates = callPackage ../development/tools/rust/cargo-duplicates { };
cargo-edit = callPackage ../development/tools/rust/cargo-edit {
inherit (darwin.apple_sdk.frameworks) Security;
};