diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-10 21:45:56 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-10 21:45:56 +0900 |
| commit | ce9f4b5f713b2ff2a03adefe83175d75d16ef24f (patch) | |
| tree | 9c62c1b6c89a4b51253611d1905a31449af5a896 | |
| parent | 8f727273ef8fb88b0159a4df8d3c6f4b86d71119 (diff) | |
internal/rosa: vim artifact
Very useful for troubleshooting.
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | internal/rosa/all.go | 1 | ||||
| -rw-r--r-- | internal/rosa/vim.go | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go index 1e1e3aa0..a12b6696 100644 --- a/internal/rosa/all.go +++ b/internal/rosa/all.go @@ -174,6 +174,7 @@ const ( toyboxEarly Unzip UtilLinux + VIM Wayland WaylandProtocols XCB diff --git a/internal/rosa/vim.go b/internal/rosa/vim.go new file mode 100644 index 00000000..48bceaa1 --- /dev/null +++ b/internal/rosa/vim.go @@ -0,0 +1,45 @@ +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, + } +} |
