-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
14,213 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Choo: compile hoon | ||
|
||
To self-bootstrap: | ||
|
||
``` | ||
$ cargo build | ||
$ ../target/debug/choo --new --knob hoon/lib/hoon-139.hoon | ||
$ mv out.jam hoon-139.jam | ||
$ ../target/debug/choo --new hoon/lib/kernel.hoon hoon-139.jam | ||
$ mv out.jam bootstrap/choo.jam | ||
$ cargo build | ||
``` | ||
|
||
You now have a choo executable whose nock was built entirely by choo from Hoon sources. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* hoon-139-hoon %hoon /lib/hoon-139/hoon | ||
/* kernel-hoon %hoon /lib/kernel/hoon | ||
!. | ||
:: | ||
:: Bootstrap builder: to build the bootstrap formula for Choo using | ||
:: Urbit Ford | ||
:: | ||
:: sync files into a desk %choo | ||
:: dojo> =choo -build-file /=choo=/lib/builder/hoon | ||
:: dojo> .choo/jam choo | ||
:: | ||
:: copy <your-fakezod>/.urb/put/choo.jam to choo/bootstrap/choo.jam | ||
^- nock | ||
~& "compiling hoon" | ||
=/ hoon-knob=[t=type form=nock] | ||
~> %bout | ||
(~(mint ut %noun) %noun (ream hoon-139-hoon)) | ||
~& "compiling kernel" | ||
=/ kernel-knob=[t=type form=nock] | ||
~> %bout | ||
(~(mint ut t.hoon-knob) %noun (rain /lib/choo/kernel/hoon kernel-hoon)) | ||
[%7 form.hoon-knob form.kernel-knob] |
Oops, something went wrong.