From 39b360abb94cf5991831b6094826d97e31f372ee Mon Sep 17 00:00:00 2001 From: Karl Ericsson Date: Mon, 17 Mar 2025 00:36:55 +0100 Subject: [PATCH] cargo-outdated: 0.16.0 -> 0.17.0 Switch to fetchFromGithub Use new darwin SDK pattern --- .../tools/rust/cargo-outdated/default.nix | 31 ++++++------------- pkgs/top-level/all-packages.nix | 4 +-- 2 files changed, 10 insertions(+), 25 deletions(-) diff --git a/pkgs/development/tools/rust/cargo-outdated/default.nix b/pkgs/development/tools/rust/cargo-outdated/default.nix index 56f6e258638a..d76f344a63a6 100644 --- a/pkgs/development/tools/rust/cargo-outdated/default.nix +++ b/pkgs/development/tools/rust/cargo-outdated/default.nix @@ -1,40 +1,27 @@ { 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"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 414488dbf1e9..d76bccc6f653 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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