yazi-unwrapped: use system jemalloc

This commit is contained in:
Hamed Benazha 2024-04-22 14:42:13 +02:00
parent bd509c2fec
commit 44744035ff
1 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@
, installShellFiles
, stdenv
, Foundation
, rust-jemalloc-sys
, nix-update-script
}:
@ -25,7 +26,8 @@ rustPlatform.buildRustPackage rec {
env.YAZI_GEN_COMPLETIONS = true;
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [ Foundation ];
buildInputs = lib.optionals stdenv.isDarwin [Foundation]
++ lib.optionals (!stdenv.isDarwin) [rust-jemalloc-sys];
postInstall = ''
installShellCompletion --cmd yazi \