fix nixpkgs to 25.11, update to new zig api

This commit is contained in:
2025-12-01 10:00:33 +01:00
parent ce2d957a88
commit b0707744e2
3 changed files with 13 additions and 9 deletions

View File

@@ -19,9 +19,11 @@ pub fn build(b: *std.Build) void {
.name = "zremap",
// In this case the main source file is merely a path, however, in more),
// complicated build scripts, this could be a generated file.
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
.root_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
}),
});
exe.linkLibC();
exe.linkSystemLibrary("evdev");
@@ -57,9 +59,11 @@ pub fn build(b: *std.Build) void {
// Creates a step for unit testing. This only builds the test executable
// but does not run it.
const unit_tests = b.addTest(.{
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
.root_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
}),
});
const run_unit_tests = b.addRunArtifact(unit_tests);