summary refs log tree commit diff
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2021-11-15 19:49:31 -0500
committerfigsoda <figsoda@pm.me>2021-11-16 08:11:54 -0500
commit478acf788b629118d1272e0da21888cfe6df96fa (patch)
treeb5aada87ca89ccb4892ed3c63ad5527a21ebecac
parent009c1d5b6d8f88faded1d6962d9661dc67cee61c (diff)
downloadnixpkgs-478acf788b629118d1272e0da21888cfe6df96fa.tar
nixpkgs-478acf788b629118d1272e0da21888cfe6df96fa.tar.gz
nixpkgs-478acf788b629118d1272e0da21888cfe6df96fa.tar.bz2
nixpkgs-478acf788b629118d1272e0da21888cfe6df96fa.tar.lz
nixpkgs-478acf788b629118d1272e0da21888cfe6df96fa.tar.xz
nixpkgs-478acf788b629118d1272e0da21888cfe6df96fa.tar.zst
nixpkgs-478acf788b629118d1272e0da21888cfe6df96fa.zip
rust-analyzer: use buildFeature
-rw-r--r--pkgs/development/tools/rust/rust-analyzer/default.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/development/tools/rust/rust-analyzer/default.nix b/pkgs/development/tools/rust/rust-analyzer/default.nix
index 91eea15867e..7e69f18e124 100644
--- a/pkgs/development/tools/rust/rust-analyzer/default.nix
+++ b/pkgs/development/tools/rust/rust-analyzer/default.nix
@@ -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;