Merge pull request #116537 from onsails/fix/rust-analyzer
This commit is contained in:
commit
1c7f116d1d
3 changed files with 12 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, callPackage }:
|
{ pkgs, callPackage, CoreServices }:
|
||||||
|
|
||||||
{
|
{
|
||||||
rust-analyzer-unwrapped = callPackage ./generic.nix rec {
|
rust-analyzer-unwrapped = callPackage ./generic.nix rec {
|
||||||
|
@ -6,6 +6,8 @@
|
||||||
version = "unstable-${rev}";
|
version = "unstable-${rev}";
|
||||||
sha256 = "150gydm0mg72bbhgjjks8qc5ldiqyzhai9z4yfh4f1s2bwdfh3yf";
|
sha256 = "150gydm0mg72bbhgjjks8qc5ldiqyzhai9z4yfh4f1s2bwdfh3yf";
|
||||||
cargoSha256 = "10l0lk5p11002q59dqa5yrrz6n6s11i7bmr1wnl141bxqvm873q2";
|
cargoSha256 = "10l0lk5p11002q59dqa5yrrz6n6s11i7bmr1wnl141bxqvm873q2";
|
||||||
|
|
||||||
|
inherit CoreServices;
|
||||||
};
|
};
|
||||||
|
|
||||||
rust-analyzer = callPackage ./wrapper.nix {} {
|
rust-analyzer = callPackage ./wrapper.nix {} {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, rustPlatform, darwin, cmake
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices, cmake
|
||||||
|
, libiconv
|
||||||
, useMimalloc ? false
|
, useMimalloc ? false
|
||||||
, doCheck ? true
|
, doCheck ? true
|
||||||
|
|
||||||
|
@ -22,8 +23,10 @@ rustPlatform.buildRustPackage {
|
||||||
|
|
||||||
nativeBuildInputs = lib.optional useMimalloc cmake;
|
nativeBuildInputs = lib.optional useMimalloc cmake;
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin
|
buildInputs = lib.optionals stdenv.isDarwin [
|
||||||
[ darwin.apple_sdk.frameworks.CoreServices ];
|
CoreServices
|
||||||
|
libiconv
|
||||||
|
];
|
||||||
|
|
||||||
RUST_ANALYZER_REV = rev;
|
RUST_ANALYZER_REV = rev;
|
||||||
|
|
||||||
|
|
|
@ -11082,7 +11082,9 @@ in
|
||||||
rustracerd = callPackage ../development/tools/rust/racerd {
|
rustracerd = callPackage ../development/tools/rust/racerd {
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
};
|
};
|
||||||
inherit (callPackage ../development/tools/rust/rust-analyzer { })
|
inherit (callPackage ../development/tools/rust/rust-analyzer {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||||
|
})
|
||||||
rust-analyzer-unwrapped rust-analyzer;
|
rust-analyzer-unwrapped rust-analyzer;
|
||||||
rust-bindgen = callPackage ../development/tools/rust/bindgen { };
|
rust-bindgen = callPackage ../development/tools/rust/bindgen { };
|
||||||
rust-cbindgen = callPackage ../development/tools/rust/cbindgen {
|
rust-cbindgen = callPackage ../development/tools/rust/cbindgen {
|
||||||
|
|
Loading…
Reference in a new issue