Skip to content

Commit 39b360a

Browse files
committed
cargo-outdated: 0.16.0 -> 0.17.0
Switch to fetchFromGithub Use new darwin SDK pattern
1 parent b6265e5 commit 39b360a

File tree

2 files changed

+10
-25
lines changed

2 files changed

+10
-25
lines changed

pkgs/development/tools/rust/cargo-outdated/default.nix

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,27 @@
11
{
22
lib,
33
rustPlatform,
4-
fetchCrate,
4+
fetchFromGitHub,
55
pkg-config,
66
openssl,
7-
stdenv,
8-
curl,
9-
CoreFoundation,
10-
CoreServices,
11-
Security,
12-
SystemConfiguration,
137
}:
14-
158
rustPlatform.buildRustPackage rec {
169
pname = "cargo-outdated";
17-
version = "0.16.0";
10+
version = "0.17.0";
1811

19-
src = fetchCrate {
20-
inherit pname version;
21-
hash = "sha256-bAo3098QxepKbvBb9uF6iGNW0+RAKCCMyWfuG5WyREo=";
12+
src = fetchFromGitHub {
13+
owner = "kbknapp";
14+
repo = "cargo-outdated";
15+
rev = "v${version}";
16+
hash = "sha256-ey11ANSflWGnCsn6M9GupgC4DE5mWww6vw5pK0CFdLo=";
2217
};
2318

2419
useFetchCargoVendor = true;
25-
cargoHash = "sha256-h+sxnTAJ1uhPUk5dRiYPgPoxvbpVggnCn0TQ6kRCzO4=";
20+
cargoHash = "sha256-PYlVXGfitsjEGiw07L5b+L8pfxvtkHshIjTXeuPUTdk=";
2621

2722
nativeBuildInputs = [ pkg-config ];
2823

29-
buildInputs =
30-
[ openssl ]
31-
++ lib.optionals stdenv.hostPlatform.isDarwin [
32-
curl
33-
CoreFoundation
34-
CoreServices
35-
Security
36-
SystemConfiguration
37-
];
24+
buildInputs = [ openssl ];
3825

3926
meta = with lib; {
4027
description = "Cargo subcommand for displaying when Rust dependencies are out of date";

pkgs/top-level/all-packages.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6576,9 +6576,7 @@ with pkgs;
65766576
cargo-edit = callPackage ../development/tools/rust/cargo-edit {
65776577
inherit (darwin.apple_sdk.frameworks) Security;
65786578
};
6579-
cargo-outdated = callPackage ../development/tools/rust/cargo-outdated {
6580-
inherit (darwin.apple_sdk.frameworks) CoreFoundation CoreServices Security SystemConfiguration;
6581-
};
6579+
cargo-outdated = callPackage ../development/tools/rust/cargo-outdated { };
65826580
inherit (callPackages ../development/tools/rust/cargo-pgrx { })
65836581
cargo-pgrx_0_12_0_alpha_1
65846582
cargo-pgrx_0_12_5

0 commit comments

Comments
 (0)