Pin zhook as a URL dependency instead of a relative path

build.zig.zon pointed at ../zhook, so a clone of this repo alone could not
build. Pin the Codeberg tarball for f1b252e (current zhook master) with its
hash; zig fetches it automatically. Verified by building with no sibling
zhook checkout present.
This commit is contained in:
MarcelineVQ
2026-07-27 22:05:03 -07:00
parent 1d41a029a8
commit 8773bb2821
6 changed files with 884 additions and 5 deletions
+4 -4
View File
@@ -274,14 +274,14 @@ what you do with them on someone else's server is between you and that server's
### Building
Requires Zig 0.16 and a checkout of [zhook](https://codeberg.org/marcelinevq/zhook)
as a sibling directory - `build.zig.zon` refers to it by relative path:
Requires Zig 0.16. The only dependency is
[zhook](https://codeberg.org/marcelinevq/zhook), the x86 inline hooking library,
pinned in `build.zig.zon` and fetched automatically:
```sh
git clone https://codeberg.org/marcelinevq/zhook
git clone https://codeberg.org/MarcelineVQ/WeirdUtils
cd WeirdUtils
zig build # zig-out/bin/weirdutils.dll
zig build # zig-out/bin/weirdutils.dll
zig build all-variants -Doptimize=ReleaseSmall # + one DLL per module
```