Skip to content

Commit

Permalink
cargo-fund: init at 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Aug 17, 2020
1 parent 9ca1f49 commit ea15764
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
29 changes: 29 additions & 0 deletions pkgs/development/tools/rust/cargo-fund/default.nix
@@ -0,0 +1,29 @@
{ stdenv, fetchFromGitHub, pkg-config, rustPlatform, Security, curl, openssl, libiconv }:

rustPlatform.buildRustPackage rec {
pname = "cargo-fund";
version = "0.2.0";

src = fetchFromGitHub {
owner = "acfoltzer";
repo = pname;
rev = version;
sha256 = "1jim5bgq3fc33391qpa1q1csbzqf4hk1qyfzwxpcs5pb4ixb6vgk";
};

cargoSha256 = "181gcmaw2w5a6ah8a2ahsnc1zkadpmx1azkwh2a6x8myhzw2dxsj";

# The tests need a GitHub API token.
doCheck = false;

nativeBuildInputs = [ pkg-config ];

buildInputs = [ openssl ] ++ stdenv.lib.optionals stdenv.isDarwin [ Security libiconv curl ];

meta = with stdenv.lib; {
description = "Discover funding links for your project's dependencies";
homepage = "https://github.com/acfoltzer/cargo-fund";
license = with licenses; [ mit /* or */ asl20 ];
maintainers = with maintainers; [ johntitor ];
};
}
3 changes: 3 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -9448,6 +9448,9 @@ in
inherit (darwin.apple_sdk.frameworks) Security;
};
cargo-expand = callPackage ../development/tools/rust/cargo-expand { };
cargo-fund = callPackage ../development/tools/rust/cargo-fund {
inherit (darwin.apple_sdk.frameworks) Security;
};
cargo-fuzz = callPackage ../development/tools/rust/cargo-fuzz { };
cargo-geiger = callPackage ../development/tools/rust/cargo-geiger {
inherit (darwin) libiconv;
Expand Down

0 comments on commit ea15764

Please sign in to comment.