In a libs
subdirectory of the root of your project:
git clone https://github.com/machlibs/foobar
Then in your build.zig
add:
...
const foobar = @import("libs/foobar/build.zig");
pub fn build(b: *Builder) void {
...
exe.addPackage(foobar.pkg);
foobar.link(b, exe, .{});
}
Join the Mach community on Discord or Matrix to discuss this project, ask questions, get help, etc.