2019-06-24 23:27:08 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, libiconv, curl, darwin }:
|
2019-04-19 16:14:42 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-outdated";
|
2020-02-16 20:10:10 +00:00
|
|
|
version = "0.9.5";
|
2019-04-19 16:14:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kbknapp";
|
|
|
|
repo = pname;
|
2020-02-16 20:10:10 +00:00
|
|
|
# This is the git commit that produced 0.9.5, according to crates.io, but
|
|
|
|
# the tag is missing in git. See here for details:
|
|
|
|
# https://github.com/kbknapp/cargo-outdated/issues/206
|
|
|
|
rev = "7685da3265749bb7ae2b436a132f51d19b409bff";
|
|
|
|
sha256 = "08prksns7d3g7ha601z8p28p36rg44rjl5ph76vg6nriww96zzca";
|
2019-04-19 16:14:42 +01:00
|
|
|
};
|
|
|
|
|
2020-02-16 20:10:10 +00:00
|
|
|
cargoSha256 = "0kxfavyd9slpp2kzxhjp47q1pzw9rlmn7yhxnjsg88sxbjxfzv95";
|
2019-04-19 16:14:42 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
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";
|
|
|
|
homepage = https://github.com/kbknapp/cargo-outdated;
|
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
platforms = platforms.all;
|
2019-12-14 15:39:08 +00:00
|
|
|
maintainers = with maintainers; [ sondr3 ivan ];
|
2019-04-19 16:14:42 +01:00
|
|
|
};
|
|
|
|
}
|