depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-udeps/default.nix
Default email d6cfb865ad Project import generated by Copybara.
GitOrigin-RevId: 5265d49a36bb5a18c85e6817b338b456acc3b8cc
2020-10-18 20:13:06 -04:00

30 lines
841 B
Nix

{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig, openssl, CoreServices, Security, libiconv }:
rustPlatform.buildRustPackage rec {
pname = "cargo-udeps";
version = "0.1.15";
src = fetchFromGitHub {
owner = "est31";
repo = pname;
rev = "v${version}";
sha256 = "0qnmz7sxbwnjdsl17h876szxd04z0q9arbl1ib45b6346x7mq8n4";
};
cargoSha256 = "1jnbf0a3bggjf0wapr9xdj9hwfpgki2csg7rhg5maqavm8m0mirm";
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ]
++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices Security libiconv ];
# Requires network access
doCheck = false;
meta = with stdenv.lib; {
description = "Find unused dependencies in Cargo.toml";
homepage = "https://github.com/est31/cargo-udeps";
license = licenses.mit;
maintainers = with maintainers; [ b4dm4n ];
};
}