yazi-unwrapped: use system jemalloc

This commit is contained in:
Hamed Benazha
2024-04-22 15:38:20 +02:00
parent bd509c2fec
commit 44744035ff
+3 -1
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 \