1 { lib, stdenv, fetchFromGitHub, pkg-config, rustPlatform, Security, curl, openssl, libiconv }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 hash = "sha256-8mnCwWwReNH9s/gbxIhe7XdJRIA6BSUKm5jzykU5qMU=";
14 cargoHash = "sha256-J4AylYE4RTRPTUz5Hek7D34q9HjlFnrc/z/ax0i6lPQ=";
16 # The tests need a GitHub API token.
19 nativeBuildInputs = [ pkg-config ];
21 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security libiconv curl ];
24 description = "Discover funding links for your project's dependencies";
25 mainProgram = "cargo-fund";
26 homepage = "https://github.com/acfoltzer/cargo-fund";
27 license = with licenses; [ mit /* or */ asl20 ];
28 maintainers = with maintainers; [ johntitor ];