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

35 lines
1 KiB
Nix
Raw Normal View History

2019-06-24 22:27:08 +00:00
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, libiconv, curl, darwin }:
rustPlatform.buildRustPackage rec {
pname = "cargo-outdated";
2020-03-11 21:19:55 +00:00
version = "0.9.7";
src = fetchFromGitHub {
owner = "kbknapp";
repo = pname;
2020-03-11 21:19:55 +00:00
rev = "v${version}";
sha256 = "0g91cfja4h9qhpxgnimczjna528ml645iz7hgpwl6yp0742qcal4";
};
2020-03-11 21:19:55 +00:00
# Can be removed when updating to the next release.
cargoPatches = [ ./0001-Fix-outdated-Cargo.lock.patch ];
cargoSha256 = "0pr57g41lnn8srcbc11sb15qchf01zwqcb1802xdayj6wlc3g3dy";
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ]
++ stdenv.lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
2019-06-24 22:27:08 +00:00
libiconv
curl
];
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;
maintainers = with maintainers; [ sondr3 ivan ];
};
}