Skip to content

Instantly share code, notes, and snippets.

@hdorio
Last active October 25, 2020 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hdorio/82a63be5460e0d411d16f82a92cd81aa to your computer and use it in GitHub Desktop.
Save hdorio/82a63be5460e0d411d16f82a92cd81aa to your computer and use it in GitHub Desktop.
# Install libgit2
# sudo apt install libgit2-dev # this is v0.28 but we need v1.0
# Build libgit2
sudo apt install libssl-dev
git clone https://github.com/libgit2/libgit2.git
cd libgit2
mkdir build && cd build
cmake ..
cmake --build . --target install
# Build zkg
# zig executable must be installed e.g. in /usr/bin/zig
zig build
sudo ln -s $(pwd)/zig-cache/bin/zkg /usr/bin/zkg
sudo cp -r zig-cache/lib/zig/ /usr/lib/
# Build std documentation
# www.ziglang.org/update_std_docs
zig test lib/std/std.zig -femit-docs -fno-emit-bin --override-lib-dir ./lib --output-dir ./docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment