depot/third_party/nixpkgs/pkgs/tools/package-management/cargo-outdated/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

30 lines
879 B
Nix

{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, libiconv, curl, darwin }:
rustPlatform.buildRustPackage rec {
pname = "cargo-outdated";
version = "0.9.14";
src = fetchFromGitHub {
owner = "kbknapp";
repo = pname;
rev = "v${version}";
sha256 = "sha256-80H0yblEcxP6TTil0dJPZhvMivDLuyvoV0Rmcrykgjs=";
};
cargoSha256 = "sha256-RACdzaCWfm5rrIX0wrvKSmhLQt1a+2MQqrjTx+etpGo=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
libiconv
curl
];
meta = with 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 ];
maintainers = with maintainers; [ sondr3 ivan ];
};
}