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