Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package request: NvChad #48296

Closed
jaminW55 opened this issue Jan 20, 2024 · 4 comments
Closed

Package request: NvChad #48296

jaminW55 opened this issue Jan 20, 2024 · 4 comments
Labels
request Package request

Comments

@jaminW55
Copy link

Package name

NvChad

Package homepage

https://github.com/NvChad/NvChad

Description

Neovim config written in Lua with a beautiful UI and fast startup

Does the requested package meet the package requirements?

System, Compiled

Is the requested package released?

Yes

@jaminW55 jaminW55 added the request Package request label Jan 20, 2024
@jaminW55
Copy link
Author

jaminW55 commented Jan 20, 2024

I've actually almost got this one working. It builds without error, but then does not install. I am not entirely certain where I went wrong and I wonder if maybe I need to include something that changes terminal fonts to nerd fonts.

It was required to force the extraction, as for whatever reason it would not extract.

Please see the below template:

# Template file for 'nvchad'
pkgname=nvchad
version=2.0
revision=1
build_style=fetch
depends="neovim>=0.9.4 xclip"
hostmakedepends="tar"
short_desc="Neovim config written in Lua with a beautiful UI and fast startup"
maintainer="jaminW55 <jaminW55@gmail.me>"
license="GPL-3.0"
homepage="https://github.com/NvChad/NvChad"
distfiles="https://github.com/NvChad/NvChad/archive/refs/tags/v${version}.tar.gz"
checksum=78334f0bd8ec196a827c14ba9e33d2266833249a1916319d60c2ba7e20d6fba7

do_install() {
    # Force extraction of tarball
    tar -xzf "v${version}.tar.gz" -C "${wrksrc}"

    # Navigate to the directory where the source files are extracted
    cd "${wrksrc}/NvChad-${version}"

    # Create Necessary Directories
    vmkdir /usr/share/nvim/runtime
    vmkdir /usr/share/nvchad

    # Copying necessary files
    vcopy init.lua /usr/share/nvchad
    vcopy lua /usr/share/nvchad
    vcopy .stylua.toml /usr/share/nvchad

    # Copy the same files to nvim runtime directory
    vcopy init.lua /usr/share/nvim/runtime
    vcopy lua /usr/share/nvim/runtime
    vcopy .stylua.toml /usr/share/nvim/runtime
}

post_install() {
    echo "To update NvChad, run 'NvChadUpdate' inside neovim."
}

@classabbyamp
Copy link
Member

Does the requested package meet the package requirements?
System, Compiled

this is just a set of neovim configs. it does not (and probably should not) be installed system-wide for most use-cases, and it is not compiled (it's lua).

you should just install it like upstream says to.

@classabbyamp classabbyamp closed this as not planned Won't fix, can't repro, duplicate, stale Jan 20, 2024
@jaminW55
Copy link
Author

Both Arch and NixOS have this packaged, so I assumed it may be cleaner to set-up via package.

@classabbyamp
Copy link
Member

the AUR is not arch, it's a free-for-all where anyone can make a package for whatever they want

nix packages many things because they can be hard to install with the way nix is structured

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Package request
Projects
None yet
Development

No branches or pull requests

2 participants