Skip to content

Instantly share code, notes, and snippets.

@Techcable
Last active March 31, 2025 15:53
Show Gist options
  • Save Techcable/ec96ab7323dff66ca50a6d1a333977ce to your computer and use it in GitHub Desktop.
Save Techcable/ec96ab7323dff66ca50a6d1a333977ce to your computer and use it in GitHub Desktop.
Build chawan browser on macOS (https://sr.ht/~bptato/chawan/)
#!/usr/bin/env fish
set --local openssl_prefix $(brew --prefix openssl)
set --local libssh_prefix $(brew --prefix libssh2)
set -gx CFLAGS "-I$openssl_prefix/include -I$libssh_prefix/include -lssl -lssh2"
set -gx LDFLAGS "-L$openssl_prefix/lib -L$libssh_prefix/lib -lssl -lssh2"
if not test -f ./nim.cfg; or not test -f ./README.md
echo "ERROR: Should be in chawan root directory" >&2;
exit 1;
end
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment