depot/pkgs/development/tools/rust/cargo-fund/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

30 lines
907 B
Nix

{ lib, stdenv, fetchFromGitHub, pkg-config, rustPlatform, Security, curl, openssl, libiconv }:
rustPlatform.buildRustPackage rec {
pname = "cargo-fund";
version = "0.2.3";
src = fetchFromGitHub {
owner = "acfoltzer";
repo = pname;
rev = version;
hash = "sha256-8mnCwWwReNH9s/gbxIhe7XdJRIA6BSUKm5jzykU5qMU=";
};
cargoHash = "sha256-J4AylYE4RTRPTUz5Hek7D34q9HjlFnrc/z/ax0i6lPQ=";
# The tests need a GitHub API token.
doCheck = false;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security libiconv curl ];
meta = with lib; {
description = "Discover funding links for your project's dependencies";
mainProgram = "cargo-fund";
homepage = "https://github.com/acfoltzer/cargo-fund";
license = with licenses; [ mit /* or */ asl20 ];
maintainers = with maintainers; [ johntitor ];
};
}