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";
|
buildAndTestSubdir = "crates/rust-analyzer";
|
||||||
|
|
||||||
cargoBuildFlags = lib.optional useMimalloc "--features=mimalloc";
|
|
||||||
cargoTestFlags = lib.optional useMimalloc "--features=mimalloc";
|
|
||||||
|
|
||||||
nativeBuildInputs = lib.optional useMimalloc cmake;
|
nativeBuildInputs = lib.optional useMimalloc cmake;
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [
|
buildInputs = lib.optionals stdenv.isDarwin [
|
||||||
|
@ -66,6 +63,8 @@ rustPlatform.buildRustPackage rec {
|
||||||
libiconv
|
libiconv
|
||||||
];
|
];
|
||||||
|
|
||||||
|
buildFeatures = lib.optional useMimalloc "mimalloc";
|
||||||
|
|
||||||
RUST_ANALYZER_REV = version;
|
RUST_ANALYZER_REV = version;
|
||||||
|
|
||||||
inherit doCheck;
|
inherit doCheck;
|
||||||
|
|
Loading…
Reference in a new issue