nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 openssl,
7}:
8rustPlatform.buildRustPackage rec {
9 pname = "cargo-outdated";
10 version = "0.18.0";
11
12 src = fetchFromGitHub {
13 owner = "kbknapp";
14 repo = "cargo-outdated";
15 rev = "v${version}";
16 hash = "sha256-r7FtuXx9+OmVAdL6+9s2bYHjsURmX60+2c7+2FjkSRs=";
17 };
18
19 cargoHash = "sha256-l4UfmntTRlqRq1040FTzAn/QU33+owv569tcWNXSGN0=";
20
21 nativeBuildInputs = [ pkg-config ];
22
23 buildInputs = [ openssl ];
24
25 meta = {
26 description = "Cargo subcommand for displaying when Rust dependencies are out of date";
27 mainProgram = "cargo-outdated";
28 homepage = "https://github.com/kbknapp/cargo-outdated";
29 changelog = "https://github.com/kbknapp/cargo-outdated/blob/v${version}/CHANGELOG.md";
30 license = with lib.licenses; [
31 asl20 # or
32 mit
33 ];
34 maintainers = with lib.maintainers; [
35 ivan
36 matthiasbeyer
37 ];
38 };
39}