deps: update ws

This commit is contained in:
LordMZTE 2023-02-10 18:03:54 +01:00
parent 5e51df69c3
commit 10b17f6021
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
3 changed files with 12 additions and 9 deletions

View file

@ -11,14 +11,7 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
});
const zuri_mod = b.createModule(.{
.source_file = .{ .path = "deps/ws/lib/zuri/src/zuri.zig" },
});
exe.addAnonymousModule("ws", .{
.source_file = .{ .path = "deps/ws/src/main.zig" },
.dependencies = &.{.{ .name = "zuri", .module = zuri_mod }},
});
exe.addModule("ws", b.dependency("ws", .{}).module("ws"));
// need libnotify, so might as well link glib and use glib logging
exe.linkLibC();

11
build.zig.zon Normal file
View file

@ -0,0 +1,11 @@
.{
.name = "ntfylisten",
.version = "0.0.0",
.dependencies = .{
.ws = .{
.url = "https://github.com/nikneym/ws/archive/df714e6f851b75f05b11bfe539959b8e6646f415.tar.gz",
.hash = "12207a08e2c53febf3b5661832376445a60b300702df9efa526b1c723ed126050ddb",
},
},
}

1
deps/ws vendored

@ -1 +0,0 @@
Subproject commit d11513b70fa7b062bfa327af3377436a86d05b89