1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 00:25:24 +00:00
nixpkgs/pkgs/tools/package-management/cargo-outdated/default.nix
2020-11-01 07:07:58 +00:00

31 lines
890 B
Nix

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