rust-analyzer: use buildFeature
This commit is contained in:
parent
009c1d5b6d
commit
478acf788b
1 changed files with 2 additions and 3 deletions
|
@ -56,9 +56,6 @@ rustPlatform.buildRustPackage rec {
|
|||
|
||||
buildAndTestSubdir = "crates/rust-analyzer";
|
||||
|
||||
cargoBuildFlags = lib.optional useMimalloc "--features=mimalloc";
|
||||
cargoTestFlags = lib.optional useMimalloc "--features=mimalloc";
|
||||
|
||||
nativeBuildInputs = lib.optional useMimalloc cmake;
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [
|
||||
|
@ -66,6 +63,8 @@ rustPlatform.buildRustPackage rec {
|
|||
libiconv
|
||||
];
|
||||
|
||||
buildFeatures = lib.optional useMimalloc "mimalloc";
|
||||
|
||||
RUST_ANALYZER_REV = version;
|
||||
|
||||
inherit doCheck;
|
||||
|
|
Loading…
Reference in a new issue