mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 20:39:04 +02:00
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:
parent
3a7d97bff2
commit
fa272718c8
|
@ -8,6 +8,8 @@
|
||||||
, esbuild
|
, esbuild
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, libsecret
|
, libsecret
|
||||||
|
, stdenv
|
||||||
|
, darwin
|
||||||
, setDefaultServerPath ? true
|
, setDefaultServerPath ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -40,6 +42,9 @@ let
|
||||||
jq moreutils esbuild
|
jq moreutils esbuild
|
||||||
# Required by `keytar`, which is a dependency of `vsce`.
|
# Required by `keytar`, which is a dependency of `vsce`.
|
||||||
pkg-config libsecret
|
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
|
# Follows https://github.com/rust-analyzer/rust-analyzer/blob/41949748a6123fd6061eb984a47f4fe780525e63/xtask/src/dist.rs#L39-L65
|
||||||
|
|
Loading…
Reference in a new issue