package rosa

import "hakurei.app/internal/pkg"

func (t Toolchain) newVIM() (pkg.Artifact, string) {
	const (
		version  = "9.2.0461"
		checksum = "18Rr_5oIf_PkKuqVkN4CMZIGkZEgpN1vamlrsvPLBjn4mN98CRuoJmhzRZ7MoVYM"
	)
	return t.NewPackage("vim", version, newFromGitHub(
		"vim/vim",
		"v"+version,
		checksum,
	), &PackageAttr{
		Chmod:       true,
		Writable:    true,
		EnterSource: true,
	}, &MakeHelper{
		InPlace: true,
		Configure: []KV{
			{"with-tlib", "ncursesw"},
		},
		Check: []string{"test"},

		// very expensive
		SkipCheck: true,
	},
		Ncurses,
	), version
}
func init() {
	artifactsM[VIM] = Metadata{
		f: Toolchain.newVIM,

		Name:        "vim",
		Description: "a greatly improved version of the good old UNIX editor Vi",
		Website:     "https://www.vim.org",

		Dependencies: P{
			Ncurses,
		},

		ID: 5092,
	}
}
