nixpkgs/pkgs/development/tools/rust/cargo-fund/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
866 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, pkg-config, rustPlatform, Security, curl, openssl, libiconv }:
2020-08-16 22:56:23 +00:00
rustPlatform.buildRustPackage rec {
pname = "cargo-fund";
2022-09-20 06:45:18 +00:00
version = "0.2.2";
2020-08-16 22:56:23 +00:00
src = fetchFromGitHub {
owner = "acfoltzer";
repo = pname;
rev = version;
2022-09-20 06:45:18 +00:00
sha256 = "sha256-hUTBDC2XU82jc9TbyCYVKgWxrKG/OIc1a+fEdj5566M=";
2020-08-16 22:56:23 +00:00
};
2022-09-20 06:45:18 +00:00
cargoSha256 = "sha256-cU/X+oNTMjUSODkdm+P+vVLmBJlkeQ9WTJGvQmUOQKw=";
2020-08-16 22:56:23 +00:00
# The tests need a GitHub API token.
doCheck = false;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security libiconv curl ];
2020-08-16 22:56:23 +00:00
meta = with lib; {
2020-08-16 22:56:23 +00:00
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 ];
};
}