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