{ lib, rustPlatform, fetchFromGitHub, curl, pkg-config, libgit2, openssl, zlib, }: rustPlatform.buildRustPackage rec { pname = "cargo-duplicates"; version = "0.8.4"; src = fetchFromGitHub { owner = "Keruspe"; repo = "cargo-duplicates"; rev = "v${version}"; hash = "sha256-JzS1+BHSCEcZM5MokbQsck/AGJ7EeSwbzjNz0uLQsgE="; }; cargoHash = "sha256-58H6wFToCgW+J7QYXb6W6BiCFUVIG8MmxgZtWnPNkrI="; nativeBuildInputs = [ curl pkg-config ]; buildInputs = [ curl libgit2 openssl zlib ]; 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 ]; }; }