nixpkgs/pkgs/tools/package-management/cargo-outdated/default.nix

31 lines
890 B
Nix
Raw Normal View History

2020-03-25 01:39:48 -07:00
{ stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, libiconv, curl, darwin }:
rustPlatform.buildRustPackage rec {
pname = "cargo-outdated";
2020-07-19 19:55:59 -07:00
version = "0.9.11";
src = fetchFromGitHub {
owner = "kbknapp";
repo = pname;
2020-03-11 14:19:55 -07:00
rev = "v${version}";
2020-07-19 19:55:59 -07:00
sha256 = "11fdh24366czb3vv2szf5bl0mhsilwvpfc1h4qxq18z2dpb0y18m";
};
2020-07-19 19:55:59 -07:00
cargoSha256 = "0sr3ijq6vh2269xav03d117kzmg68xiwqsq48xjdrsnn4dx5lizy";
2020-03-11 14:19:55 -07:00
2020-03-25 01:39:48 -07:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ]
++ stdenv.lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
2019-06-24 15:27:08 -07:00
libiconv
curl
];
meta = with stdenv.lib; {
description = "A cargo subcommand for displaying when Rust dependencies are out of date";
2020-03-25 01:39:48 -07:00
homepage = "https://github.com/kbknapp/cargo-outdated";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ sondr3 ivan ];
};
}