cargo-spellcheck: fix build on Darwin

This commit is contained in:
Aaron Jheng 2023-10-27 14:47:20 +08:00
parent 77ed358e3d
commit 150228cb64
No known key found for this signature in database
GPG Key ID: F6A547A869D050A3
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
, fetchFromGitHub
, stdenv
, Security
, SystemConfiguration
}:
rustPlatform.buildRustPackage rec {
@ -20,7 +21,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ rustPlatform.bindgenHook ];
buildInputs = lib.optional stdenv.isDarwin Security;
buildInputs = lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
preCheck = "HOME=$(mktemp -d)";

View File

@ -17166,7 +17166,7 @@ with pkgs;
cargo-sort = callPackage ../development/tools/rust/cargo-sort { };
cargo-spellcheck = callPackage ../development/tools/rust/cargo-spellcheck {
inherit (darwin.apple_sdk.frameworks) Security;
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
};
cargo-supply-chain = callPackage ../development/tools/rust/cargo-supply-chain { };
cargo-sweep = callPackage ../development/tools/rust/cargo-sweep { };