Skip to content

Commit 6b1416f

Browse files
committed
migrate from libvaxis to vxim
1 parent 33dc380 commit 6b1416f

7 files changed

Lines changed: 13 additions & 8 deletions

File tree

build.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@ pub fn build(b: *std.Build) void {
3939
docs.dependOn(&install_docs.step);
4040

4141
// Start of TUI declaration.
42-
const vaxis = b.lazyDependency("vaxis", .{ .target = target, .optimize = optimize });
42+
const vxim = b.lazyDependency("vxim", .{ .target = target, .optimize = optimize });
4343
const ltf = b.lazyDependency("log_to_file", .{ .target = target, .optimize = optimize });
4444

45-
if (vaxis) |vaxis_dep| {
45+
if (vxim) |vxim_dep| {
4646
if (ltf) |ltf_dep| {
4747
const exe_mod = b.createModule(.{
4848
.root_source_file = b.path("src/tui/main.zig"),
4949
.target = target,
5050
.optimize = optimize,
5151
});
5252

53-
exe_mod.addImport("vaxis", vaxis_dep.module("vaxis"));
53+
exe_mod.addImport("vxim", vxim_dep.module("vxim"));
5454
exe_mod.addImport("log_to_file", ltf_dep.module("log_to_file"));
5555
exe_mod.addImport("libfn", libfn);
5656

build.zig.zon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
.url = "git+https://github.com/rockorager/libvaxis#cfa6311448755cf18684c09697d20b7a7622e578",
1313
.hash = "vaxis-0.5.1-BWNV_IcuCQCjrYTHNe3-ArhtpwLzRfgI2mBu0yKT7IZl",
1414
},
15+
.vxim = .{
16+
.url = "git+https://tangled.org/@reykjalin.org/vxim#8fda8418a2368b61dbcd1d992bf9bf44e15be391",
17+
.hash = "vxim-0.0.0-TaTdBYOaAABEL4GIB9iT3AT7D-qw4cWq-cGPSWJFTRNo",
18+
},
1519
},
1620
.paths = .{
1721
"src/libfn",

src/tui/EditorWidget.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const std = @import("std");
2-
const vaxis = @import("vaxis");
2+
const vaxis = @import("vxim").vaxis;
33
const libfn = @import("libfn");
44

55
const vxfw = vaxis.vxfw;

src/tui/Fonn.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const std = @import("std");
2-
const vaxis = @import("vaxis");
2+
const vaxis = @import("vxim").vaxis;
33
const vxfw = vaxis.vxfw;
44

55
const EditorWidget = @import("./EditorWidget.zig");

src/tui/main.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const std = @import("std");
2-
const vaxis = @import("vaxis");
2+
const vxim = @import("vxim");
3+
const vaxis = vxim.vaxis;
34
const vxfw = vaxis.vxfw;
45
const builtin = @import("builtin");
56
const ltf = @import("log_to_file");

src/tui/menu_bar.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const std = @import("std");
2-
const vaxis = @import("vaxis");
2+
const vaxis = @import("vxim").vaxis;
33
const vxfw = vaxis.vxfw;
44

55
pub const Menu = struct {

src/tui/themes/catppuccin-mocha.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const vaxis = @import("vaxis");
1+
const vaxis = @import("vxim").vaxis;
22

33
pub const rosewater: vaxis.Cell.Color = .{ .rgb = .{ 245, 224, 220 } };
44
pub const flamingo: vaxis.Cell.Color = .{ .rgb = .{ 242, 205, 205 } };

0 commit comments

Comments
 (0)