vscode-extensions.matklad.rust-analyzer: fix #152285 on aarch64-darwin

The rust-analyzer vscode extension depends on vsce which depends on keytar
which needs the AppKit and Security frameworks on Darwin.
This commit is contained in:
Michael Stone 2021-12-26 17:25:13 -05:00 committed by Jonathan Ringer
parent 3a7d97bff2
commit fa272718c8

View File

@ -8,6 +8,8 @@
, esbuild
, pkg-config
, libsecret
, stdenv
, darwin
, setDefaultServerPath ? true
}:
@ -40,6 +42,9 @@ let
jq moreutils esbuild
# Required by `keytar`, which is a dependency of `vsce`.
pkg-config libsecret
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.AppKit
darwin.apple_sdk.frameworks.Security
];
# Follows https://github.com/rust-analyzer/rust-analyzer/blob/41949748a6123fd6061eb984a47f4fe780525e63/xtask/src/dist.rs#L39-L65