From e930b87e09f141e1d6ba6e0e8b48a24916c8b0a3 Mon Sep 17 00:00:00 2001 From: Alex Martens Date: Sat, 16 Nov 2024 09:02:50 -0800 Subject: [PATCH] cargo-spellcheck: move to pkgs/by-name --- .../ca/cargo-spellcheck/package.nix} | 8 +++++--- pkgs/top-level/all-packages.nix | 3 --- 2 files changed, 5 insertions(+), 6 deletions(-) rename pkgs/{development/tools/rust/cargo-spellcheck/default.nix => by-name/ca/cargo-spellcheck/package.nix} (85%) diff --git a/pkgs/development/tools/rust/cargo-spellcheck/default.nix b/pkgs/by-name/ca/cargo-spellcheck/package.nix similarity index 85% rename from pkgs/development/tools/rust/cargo-spellcheck/default.nix rename to pkgs/by-name/ca/cargo-spellcheck/package.nix index 6d6bfa5ae2580..c247023b8ed84 100644 --- a/pkgs/development/tools/rust/cargo-spellcheck/default.nix +++ b/pkgs/by-name/ca/cargo-spellcheck/package.nix @@ -2,8 +2,7 @@ , rustPlatform , fetchFromGitHub , stdenv -, Security -, SystemConfiguration +, darwin }: rustPlatform.buildRustPackage rec { @@ -21,7 +20,10 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ rustPlatform.bindgenHook ]; - buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security SystemConfiguration ]; + buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ + darwin.apple_sdk.frameworks.Security + darwin.apple_sdk.frameworks.SystemConfiguration + ]; preCheck = "HOME=$(mktemp -d)"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index beb25b36d18ad..dc0e5fdc46ab0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7055,9 +7055,6 @@ with pkgs; cargo-rdme = callPackage ../by-name/ca/cargo-rdme/package.nix { inherit (darwin.apple_sdk.frameworks) Security; }; - cargo-spellcheck = callPackage ../development/tools/rust/cargo-spellcheck { - inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration; - }; cargo-udeps = callPackage ../development/tools/rust/cargo-udeps { inherit (darwin.apple_sdk.frameworks) CoreServices Security SystemConfiguration; };