Closed tuler closed 1 month ago
@alexmikhalevich stabbed this at https://github.com/alexmikhalevich/homebrew-cartesi/ need to see how to update to latest emulator version
Trying this starting from @alexmikhalevich work ~https://github.com/cartesi/homebrew-tap/pull/1~
Ready for review at https://github.com/cartesi/homebrew-tap/pull/4
But I believe there will be changes to the Makefile to make it more compatible with the brew build system.
Alex upstreamed the required Brew changes, so looks like there was no need for Makefile patches :)
brew tap cartesi/tap
brew install cartesi-machine
Context
Homebrew is one of the two most popular package managers for macOS. It's a very convenient tool for a lot of users and developers.
It would be great to have a brew formula to install cartesi-machine from source.
Possible solutions
The machine-emulator is already compilable with dependencies coming from brew. But this issue is about taking one step further and providing a brew formula to install the machine-emulator products from source: binaries, include files, libraries.
Brew has a particular organization, typically something like:
And that is symliked to:
One could argue that it's possible to delegate this task to a third-party developer not part of the machine-emulator team. But I believe there will be changes to the Makefile to make it more compatible with the brew build system.
ps: after the formula works it's also possible to provide pre-compiled binaries through brew bottles.
Definition of Done
brew install cartesi-machine