Merge pull request #263715 from aaronjheng/cargo-spellcheck

cargo-spellcheck: fix build on Darwin
This commit is contained in:
Matthias Beyer 2023-10-27 10:25:14 +02:00 committed by GitHub
commit 0d4a1a205f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

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

View file

@ -17166,7 +17166,7 @@ with pkgs;
cargo-sort = callPackage ../development/tools/rust/cargo-sort { }; cargo-sort = callPackage ../development/tools/rust/cargo-sort { };
cargo-spellcheck = callPackage ../development/tools/rust/cargo-spellcheck { 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-supply-chain = callPackage ../development/tools/rust/cargo-supply-chain { };
cargo-sweep = callPackage ../development/tools/rust/cargo-sweep { }; cargo-sweep = callPackage ../development/tools/rust/cargo-sweep { };