Skip to content

Commit

Permalink
cargo-spellcheck: fix build on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjheng authored and pull[bot] committed Oct 27, 2023
1 parent 468cf13 commit e3bae49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkgs/development/tools/rust/cargo-spellcheck/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, fetchFromGitHub
, stdenv
, Security
, SystemConfiguration
}:

rustPlatform.buildRustPackage rec {
Expand All @@ -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)";

Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17168,7 +17168,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 { };
Expand Down

0 comments on commit e3bae49

Please sign in to comment.