mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
47 lines
1,012 B
Nix
47 lines
1,012 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
openssl,
|
|
libiconv,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-udeps";
|
|
version = "0.1.55";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "est31";
|
|
repo = "cargo-udeps";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-4/JfD2cH46it8PkU58buTHwFXBZI3sytyJCUWl+vSAE=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-4fF5nW8G2XMvC2K2nW7fhZL9DvjW4/cZXSCJurSu9NE=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
# TODO figure out how to use provided curl instead of compiling curl from curl-sys
|
|
buildInputs =
|
|
[ openssl ]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
libiconv
|
|
];
|
|
|
|
# Requires network access
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Find unused dependencies in Cargo.toml";
|
|
homepage = "https://github.com/est31/cargo-udeps";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [
|
|
b4dm4n
|
|
matthiasbeyer
|
|
];
|
|
mainProgram = "cargo-udeps";
|
|
};
|
|
}
|