depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-duplicates/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

47 lines
987 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, curl
, pkg-config
, libgit2
, openssl
, zlib
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-duplicates";
version = "0.6.0";
src = fetchFromGitHub {
owner = "Keruspe";
repo = "cargo-duplicates";
rev = "v${version}";
hash = "sha256-OwytBecRGizkDC2S92FKAy3/mc4Jg/NwaYIPahfiG6k=";
};
cargoHash = "sha256-LsdzHCQ4uG6+dwiUoC36VPuqUf8oPlcMHxNgdkvYzu8=";
nativeBuildInputs = [
curl
pkg-config
];
buildInputs = [
curl
libgit2
openssl
zlib
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.Security
];
meta = with lib; {
description = "Cargo subcommand for displaying when different versions of a same dependency are pulled in";
mainProgram = "cargo-duplicates";
homepage = "https://github.com/Keruspe/cargo-duplicates";
license = licenses.mit;
maintainers = with maintainers; [ figsoda matthiasbeyer ];
};
}