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

31 lines
879 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, libiconv, curl, darwin }:
rustPlatform.buildRustPackage rec {
pname = "cargo-outdated";
2021-01-28 23:56:20 +01:00
version = "0.9.14";
src = fetchFromGitHub {
owner = "kbknapp";
repo = pname;
2020-03-11 22:19:55 +01:00
rev = "v${version}";
2021-01-28 23:56:20 +01:00
sha256 = "sha256-80H0yblEcxP6TTil0dJPZhvMivDLuyvoV0Rmcrykgjs=";
};
2021-01-28 23:56:20 +01:00
cargoSha256 = "sha256-RACdzaCWfm5rrIX0wrvKSmhLQt1a+2MQqrjTx+etpGo=";
2020-03-11 22:19:55 +01:00
2020-03-25 09:39:48 +01:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ]
2021-01-15 10:19:50 +01:00
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
2019-06-25 00:27:08 +02:00
libiconv
curl
];
meta = with lib; {
description = "A cargo subcommand for displaying when Rust dependencies are out of date";
2020-03-25 09:39:48 +01:00
homepage = "https://github.com/kbknapp/cargo-outdated";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ sondr3 ivan ];
};
}