nixpkgs 25.11 -> 26.05

This commit is contained in:
2026-05-30 20:36:35 +02:00
parent b0707744e2
commit e1aecedf30
4 changed files with 43 additions and 27 deletions

View File

@@ -15,18 +15,20 @@ pub fn build(b: *std.Build) void {
// set a preferred release mode, allowing the user to decide how to optimize.
const optimize = b.standardOptimizeOption(.{});
var exe = b.addExecutable(.{
const exe_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
.link_libc = true,
});
exe_module.linkSystemLibrary("evdev", .{});
const exe = b.addExecutable(.{
.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_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
}),
.root_module = exe_module,
});
exe.linkLibC();
exe.linkSystemLibrary("evdev");
// This declares intent for the executable to be installed into the
// standard location when the user invokes the "install" step (the default