rust-analyzer: use buildFeature

This commit is contained in:
figsoda 2021-11-15 19:49:31 -05:00
parent 009c1d5b6d
commit 478acf788b

View file

@ -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;