diff --git a/nixos/doc/manual/release-notes/rl-2605.section.md b/nixos/doc/manual/release-notes/rl-2605.section.md index 151f532bada9..abd96e63d81f 100644 --- a/nixos/doc/manual/release-notes/rl-2605.section.md +++ b/nixos/doc/manual/release-notes/rl-2605.section.md @@ -195,6 +195,8 @@ See . - 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} diff --git a/pkgs/by-name/lu/lunarvim/package.nix b/pkgs/by-name/lu/lunarvim/package.nix deleted file mode 100644 index a08c10c3da65..000000000000 --- a/pkgs/by-name/lu/lunarvim/package.nix +++ /dev/null @@ -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 - }; -}) diff --git a/pkgs/development/tools/parsing/tree-sitter/default.nix b/pkgs/development/tools/parsing/tree-sitter/default.nix index f90d0201e766..189d8701ab41 100644 --- a/pkgs/development/tools/parsing/tree-sitter/default.nix +++ b/pkgs/development/tools/parsing/tree-sitter/default.nix @@ -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; }; }; diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index b6dcba8642a3..258a620ed634 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -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.