lunarvim: remove (#487308)

This commit is contained in:
Gaétan Lepage 2026-03-06 23:09:23 +00:00 committed by GitHub
commit 63527c2871
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 3 additions and 155 deletions

View file

@ -197,6 +197,8 @@ See <https://github.com/NixOS/nixpkgs/issues/481673>.
- SQLite paths are now relative to `service.rootpath` unless absolute. Startup now validates file
storage and OAuth providers.
- `lunarvim` package has been removed, as it was abandoned upstream and relied on an old version of `neovim` to work properly.
## Other Notable Changes {#sec-release-26.05-notable-changes}
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->

View file

@ -1,150 +0,0 @@
{
lib,
stdenv,
fetchFromGitHub,
makeWrapper,
cargo,
curl,
fd,
fzf,
git,
gnumake,
gnused,
gnutar,
gzip,
lua-language-server,
neovim,
neovim-node-client,
nodejs,
ripgrep,
tree-sitter,
unzip,
nvimAlias ? false,
viAlias ? false,
vimAlias ? false,
globalConfig ? "",
}:
stdenv.mkDerivation (finalAttrs: {
inherit
nvimAlias
viAlias
vimAlias
globalConfig
;
pname = "lunarvim";
version = "1.4.0";
src = fetchFromGitHub {
owner = "LunarVim";
repo = "LunarVim";
tag = finalAttrs.version;
hash = "sha256-uuXaDvZ9VaRJlZrdu28gawSOJFVSo5XX+JG53IB+Ijw=";
};
nativeBuildInputs = [
gnused
makeWrapper
];
runtimeDeps = [
stdenv.cc
cargo
curl
fd
fzf
git
gnumake
gnutar
gzip
lua-language-server
neovim
nodejs
neovim-node-client
ripgrep
tree-sitter
unzip
];
buildPhase = ''
runHook preBuild
mkdir -p share/lvim
cp init.lua utils/installer/config.example.lua share/lvim
cp -r lua snapshots share/lvim
mkdir bin
cp utils/bin/lvim.template bin/lvim
chmod +x bin/lvim
# LunarVim automatically copies config.example.lua, but we need to make it writable.
sed -i "2 i\\
if [ ! -f \$HOME/.config/lvim/config.lua ]; then \\
cp $out/share/lvim/config.example.lua \$HOME/.config/lvim/config.lua \\
chmod +w \$HOME/.config/lvim/config.lua \\
fi
" bin/lvim
substituteInPlace bin/lvim \
--replace NVIM_APPNAME_VAR lvim \
--replace RUNTIME_DIR_VAR \$HOME/.local/share/lvim \
--replace CONFIG_DIR_VAR \$HOME/.config/lvim \
--replace CACHE_DIR_VAR \$HOME/.cache/lvim \
--replace BASE_DIR_VAR $out/share/lvim \
--replace nvim ${neovim}/bin/nvim
# Allow language servers to be overridden by appending instead of prepending
# the mason.nvim path.
echo "lvim.builtin.mason.PATH = \"append\"" > share/lvim/global.lua
echo ${lib.strings.escapeShellArg finalAttrs.globalConfig} >> share/lvim/global.lua
sed -i "s/add_to_path()/add_to_path(true)/" share/lvim/lua/lvim/core/mason.lua
sed -i "/Log:set_level/idofile(\"$out/share/lvim/global.lua\")" share/lvim/lua/lvim/config/init.lua
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out
cp -r bin share $out
for iconDir in utils/desktop/*/; do
install -Dm444 $iconDir/lvim.svg -t $out/share/icons/hicolor/$(basename $iconDir)/apps
done
install -Dm444 utils/desktop/lvim.desktop -t $out/share/applications
wrapProgram $out/bin/lvim --prefix PATH : ${lib.makeBinPath finalAttrs.runtimeDeps} \
--prefix LD_LIBRARY_PATH : ${lib.getLib stdenv.cc.cc} \
--prefix CC : ${stdenv.cc.targetPrefix}cc
''
+ lib.optionalString finalAttrs.nvimAlias ''
ln -s $out/bin/lvim $out/bin/nvim
''
+ lib.optionalString finalAttrs.viAlias ''
ln -s $out/bin/lvim $out/bin/vi
''
+ lib.optionalString finalAttrs.vimAlias ''
ln -s $out/bin/lvim $out/bin/vim
''
+ ''
runHook postInstall
'';
meta = {
description = "IDE layer for Neovim";
homepage = "https://www.lunarvim.org/";
changelog = "https://github.com/LunarVim/LunarVim/blob/${finalAttrs.src.rev}/CHANGELOG.md";
sourceProvenance = with lib.sourceTypes; [ fromSource ];
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
prominentretail
lebensterben
];
platforms = lib.platforms.unix;
mainProgram = "lvim";
broken = true; # Incompatible with Neovim >= 0.10; upstream is unmaintained
};
})

View file

@ -20,9 +20,6 @@
enableShared ? !stdenv.hostPlatform.isStatic,
enableStatic ? stdenv.hostPlatform.isStatic,
webUISupport ? false,
# tests
lunarvim,
}:
let
@ -204,8 +201,6 @@ rustPlatform.buildRustPackage (finalAttrs: {
tests = {
# make sure all grammars build
builtGrammars = lib.recurseIntoAttrs builtGrammars;
inherit lunarvim;
};
};

View file

@ -1236,6 +1236,7 @@ mapAliases {
lowPrio = warnAlias "'lowPrio' has been removed from pkgs, use `lib.lowPrio` instead" lib.lowPrio; # Added 2025-10-30
LPCNet = throw "'LPCNet' has been renamed to/replaced by 'lpcnet'"; # Converted to throw 2025-10-27
luci-go = throw "luci-go has been removed since it was unused and failing to build for 5 months"; # Added 2025-08-27
lunarvim = throw "'lunarvim' has been removed since it was abandoned upstream and relied on an older version of 'neovim' to work properly"; # Added 2026-02-05
lxd = throw "
LXD has been removed from NixOS due to lack of Nixpkgs maintenance.
Consider migrating or switching to Incus, or remove from your configuration.