nvim-neorocks / rocks.nvim

🌒 Neovim plugin management inspired by Cargo, powered by luarocks
GNU General Public License v3.0
657 stars 12 forks source link

AUR install script #333

Open mrcjkb opened 4 months ago

mrcjkb commented 4 months ago

(Even though I haven't used Arch in years), it might be nice to provide an AUR PKGBUILD for installing rocks.nvim, along with all of its dependencies.

The same could be done for other package managers, like homebrew.

sahinf commented 1 month ago

I see that the current packager-agnostic installation script installs "rocks-binaries" from github.io. Should the PKGBUILD install rocks-nvim from

  1. github.io
  2. github source (eg source=("git+$url.git#tag=v$pkgver") )
  3. luarocks through the prexisting luarocks in the system (assuming luarocks is a dependency of nvim-rocks package

IME, aur packages tend to stick with (2) and I would prefer github as the source myself. The current install script prompts the user for a rocks install path defaulted to $XDG_DATA_HOME/nvim/rocks and asks whether to setup luarocks. I think the aur package should simply have luarocks as a dependency and assume $XDG_DATA_HOME/nvim/rocks because that's nvim standard.

sahinf commented 1 month ago

Also why don't we use the neovim standard path site/pack?

mrcjkb commented 1 month ago

I don't use arch personally, so this isn't high priority for me right now. It's just an idea. But your notes seem helpful, thanks 🙏

Also why don't we use the neovim standard path site/pack?

Because rocks.nvim is a luarocks package and luarocks packages don't have a flat install hierarchy.