Commit 39b360ab authored by Karl Ericsson's avatar Karl Ericsson
Browse files

cargo-outdated: 0.16.0 -> 0.17.0

Switch to fetchFromGithub
Use new darwin SDK pattern
parent b6265e5e
Loading
Loading
Loading
Loading
+9 −22
Original line number Diff line number Diff line
{
  lib,
  rustPlatform,
  fetchCrate,
  fetchFromGitHub,
  pkg-config,
  openssl,
  stdenv,
  curl,
  CoreFoundation,
  CoreServices,
  Security,
  SystemConfiguration,
}:

rustPlatform.buildRustPackage rec {
  pname = "cargo-outdated";
  version = "0.16.0";
  version = "0.17.0";

  src = fetchCrate {
    inherit pname version;
    hash = "sha256-bAo3098QxepKbvBb9uF6iGNW0+RAKCCMyWfuG5WyREo=";
  src = fetchFromGitHub {
    owner = "kbknapp";
    repo = "cargo-outdated";
    rev = "v${version}";
    hash = "sha256-ey11ANSflWGnCsn6M9GupgC4DE5mWww6vw5pK0CFdLo=";
  };

  useFetchCargoVendor = true;
  cargoHash = "sha256-h+sxnTAJ1uhPUk5dRiYPgPoxvbpVggnCn0TQ6kRCzO4=";
  cargoHash = "sha256-PYlVXGfitsjEGiw07L5b+L8pfxvtkHshIjTXeuPUTdk=";

  nativeBuildInputs = [ pkg-config ];

  buildInputs =
    [ openssl ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      curl
      CoreFoundation
      CoreServices
      Security
      SystemConfiguration
    ];
  buildInputs = [ openssl ];

  meta = with lib; {
    description = "Cargo subcommand for displaying when Rust dependencies are out of date";
+1 −3
Original line number Diff line number Diff line
@@ -6576,9 +6576,7 @@ with pkgs;
  cargo-edit = callPackage ../development/tools/rust/cargo-edit {
    inherit (darwin.apple_sdk.frameworks) Security;
  };
  cargo-outdated = callPackage ../development/tools/rust/cargo-outdated {
    inherit (darwin.apple_sdk.frameworks) CoreFoundation CoreServices Security SystemConfiguration;
  };
  cargo-outdated = callPackage ../development/tools/rust/cargo-outdated { };
  inherit (callPackages ../development/tools/rust/cargo-pgrx { })
    cargo-pgrx_0_12_0_alpha_1
    cargo-pgrx_0_12_5