# Copyright 2021-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit vim-plugin

DESCRIPTION="vim plugin: Vim configuration files for Nix"
HOMEPAGE="https://github.com/LnL7/vim-nix"

if [[ "${PV}" == 9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/LnL7/${PN}.git"
else
	KEYWORDS="~amd64"
	SHA="7235c7ce2cea530cb6b59bc3e46d4bfe917d15c8"
	SRC_URI="https://github.com/LnL7/${PN}/archive/${SHA}.tar.gz -> ${P}.tar.gz"
	S="${WORKDIR}/${PN}-${SHA}"
fi

LICENSE="MIT"

src_unpack() {
	if [[ "${PV}" == 9999 ]];then
		git-r3_src_unpack
	else
		default
	fi
}

VIM_PLUGIN_MESSAGES="filetype"