1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/rust/cargo-udeps/default.nix

31 lines
841 B
Nix
Raw Normal View History

2019-11-11 22:42:47 +00:00
{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig, openssl, CoreServices, Security, libiconv }:
rustPlatform.buildRustPackage rec {
pname = "cargo-udeps";
2020-10-17 22:09:29 +01:00
version = "0.1.15";
2019-11-11 22:42:47 +00:00
src = fetchFromGitHub {
owner = "est31";
repo = pname;
rev = "v${version}";
2020-10-17 22:09:29 +01:00
sha256 = "0qnmz7sxbwnjdsl17h876szxd04z0q9arbl1ib45b6346x7mq8n4";
2019-11-11 22:42:47 +00:00
};
2020-10-17 22:09:29 +01:00
cargoSha256 = "1jnbf0a3bggjf0wapr9xdj9hwfpgki2csg7rhg5maqavm8m0mirm";
2019-11-11 22:42:47 +00:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ]
++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices Security libiconv ];
2020-02-11 00:18:16 +00:00
# Requires network access
doCheck = false;
2019-11-11 22:42:47 +00:00
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 ];
};
}