aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--internal/rosa/all.go1
-rw-r--r--internal/rosa/vim.go45
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,
+ }
+}