1 { lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, CoreServices, Security, libiconv, SystemConfiguration }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-1XnCGbOkAmQycwAAEbkoX9xHqBZWYM9v5fp8BdFv7RM=";
14 cargoHash = "sha256-awEqrvmu9Kgqlz43/yJFM45WfUXZPLix5LKLtwiXV7U=";
16 nativeBuildInputs = [ pkg-config ];
18 # TODO figure out how to use provided curl instead of compiling curl from curl-sys
19 buildInputs = [ openssl ]
20 ++ lib.optionals stdenv.isDarwin [ CoreServices Security libiconv SystemConfiguration ];
22 # Requires network access
26 description = "Find unused dependencies in Cargo.toml";
27 homepage = "https://github.com/est31/cargo-udeps";
28 license = licenses.mit;
29 maintainers = with maintainers; [ b4dm4n matthiasbeyer ];
30 mainProgram = "cargo-udeps";