@@ -0,0 +1,29 @@
1+{ stdenv, fetchFromGitHub, pkg-config, rustPlatform, Security, curl, openssl, libiconv }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "cargo-fund";
5+ version = "0.2.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "acfoltzer";
9+ repo = pname;
10+ rev = version;
11+ sha256 = "1jim5bgq3fc33391qpa1q1csbzqf4hk1qyfzwxpcs5pb4ixb6vgk";
12+ };
13+
14+ cargoSha256 = "181gcmaw2w5a6ah8a2ahsnc1zkadpmx1azkwh2a6x8myhzw2dxsj";
15+
16+ # The tests need a GitHub API token.
17+ doCheck = false;
18+
19+ nativeBuildInputs = [ pkg-config ];
20+
21+ buildInputs = [ openssl ] ++ stdenv.lib.optionals stdenv.isDarwin [ Security libiconv curl ];
22+
23+ meta = with stdenv.lib; {
24+ description = "Discover funding links for your project's dependencies";
25+ homepage = "https://github.com/acfoltzer/cargo-fund";
26+ license = with licenses; [ mit /* or */ asl20 ];
27+ maintainers = with maintainers; [ johntitor ];
28+ };
29+}