Skip to content

Instantly share code, notes, and snippets.

@bakpakin
Created September 4, 2019 02:53
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 bakpakin/7185869802921ba1757b6af5d62b49f8 to your computer and use it in GitHub Desktop.
Save bakpakin/7185869802921ba1757b6af5d62b49f8 to your computer and use it in GitHub Desktop.
hermes janet package
core_modules = unpack_url(
url="https://github.com/buildpackagedeploy/hermes-core/archive/4f92d8aaa001406e58513929710027bc4b733cf2.tar.gz",
hash="sha256:db931edc4ddf71a8d749a09f14ed5d771f7099b898273176111452c4b9700983",
)
bootstrap_env = load_module(core_modules, "bootstrap.hpkg").bootstrap_env
janet_src = fetch_url(
url="https://github.com/janet-lang/janet/archive/v1.2.0.tar.gz",
hash="sha256:e824ee2da7dffab10bb7ce28917b57a82df82eebf713ad2bbb74ed7be36bd4f4"
)
janet = ```#!`{bootstrap_env}/bin/sh
source "`{bootstrap_env}/activate_env.sh"
echo `{janet_src}
tar xf "`{janet_src}"/*.tar.gz
cd janet*
make JANET_BUILD=\\\"ec62e87\\\" CC="gcc -static" LD="ld -static"
make JANET_BUILD=\\\"ec62e87\\\" PREFIX="$out" CC="gcc -static" LD="ld -static" install
```
default = janet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment