Merge pull request #144692 from JohnTitor/cargo-spellcheck-fix-darwin-build

cargo-spellcheck: fix build on darwin
This commit is contained in:
Thiago Kenji Okada 2021-11-05 20:22:23 -03:00 committed by GitHub
commit 9ce5bc61ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -2,6 +2,8 @@
, rustPlatform
, fetchFromGitHub
, libclang
, stdenv
, Security
}:
rustPlatform.buildRustPackage rec {
@ -17,6 +19,8 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "1p4iirblk6idvfhn8954v8lbxlzj0gbd8fv4wq03hfrdqisjqcsn";
buildInputs = lib.optional stdenv.isDarwin Security;
LIBCLANG_PATH = "${libclang.lib}/lib";
checkFlags = [

View File

@ -12799,7 +12799,9 @@ with pkgs;
};
cargo-readme = callPackage ../development/tools/rust/cargo-readme {};
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;
};
cargo-supply-chain = callPackage ../development/tools/rust/cargo-supply-chain {
inherit (darwin.apple_sdk.frameworks) Security;
};