lua: use meta.availableOn to pick luajit/lua5_1

This commit is contained in:
Adam Joseph 2023-01-05 00:51:00 -08:00 committed by Rick van Schijndel
parent c031cc5bf1
commit f605337abc

View File

@ -33054,7 +33054,7 @@ with pkgs;
wrapNeovim = neovim-unwrapped: lib.makeOverridable (neovimUtils.legacyWrapper neovim-unwrapped);
neovim-unwrapped = callPackage ../applications/editors/neovim {
CoreServices = darwin.apple_sdk.frameworks.CoreServices;
lua = if (stdenv.hostPlatform.isRiscV64 || stdenv.hostPlatform.isRiscV64) then lua5_1 else luajit;
lua = if lib.meta.availableOn stdenv.hostPlatform luajit then luajit else lua5_1;
};
neovimUtils = callPackage ../applications/editors/neovim/utils.nix {