Skip to content

Instantly share code, notes, and snippets.

@ayghri
Last active March 12, 2025 03:24
Show Gist options
  • Save ayghri/33aaf34534f58819175d0920a2d2e432 to your computer and use it in GitHub Desktop.
Save ayghri/33aaf34534f58819175d0920a2d2e432 to your computer and use it in GitHub Desktop.
Build Neovim (0.10.x) on Debian 12 (Bookworm)
# build neovim debian package with bundled dependencies
# I needed this for Raspberry Pi OS since bookworm default neovim is at 0.7.x currently
sudo apt install gperf luajit luarocks libuv1-dev libluajit-5.1-dev libunibilium-dev libmsgpack-dev libtermkey-dev libvterm-dev libutf8proc-dev ninja-build gettext cmake unzip curl build-essential
git clone https://github.com/neovim/neovim
# working from root dir
cd neovim
cmake -S cmake.deps -B .deps -G Ninja -D CMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build .deps
cmake -B build -G Ninja -D CMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build
# working from build dir
## create debian package
cd build
cpack -G DEB
sudo apt install lua-luv # and maybe some other dependencies
sudo dpkg -i nvim-linux64.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment