yazi-unwrapped: Also use rust-jemalloc-sys on darwin

Co-authored-by: XYenon <register@xyenon.bid>
This commit is contained in:
Hamed Benazha 2024-04-23 13:23:19 +02:00 committed by GitHub
parent 44744035ff
commit ee9b29d17f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

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