Skip to content

mari-cult/mocha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Milk is written in rust, and heavily depends on the Zig toolchain.

Obtain Rust from https://rustup.rs. If it complains that rust is already installed, say yes, it will not interfere with your system. And your system version is unsupported.

Obtain the master build of Zig from https://ziglang.org/download. Extract the tarball somewhere, update PATH to provide the zig binary.

Install the musl target.

rustup target add x86_64-unknown-linux-musl

Install the following cargo extension that uses Zig for builds.

$ cargo install cargo-zigbuild

Create Mocha's filesystem layout (does not interfere with existing systems).

mkdir -pv /mocha/{bin,src,repos}

Fetch the main repository.

git clone https://github.com/ka1mari/mocha-main /mocha/repos/main

Build Milk to build Milk :trolleyzoom:

cargo zigbuild --target=x86_64-unknown-linux-musl

Use Milk to build & install Milk.

target/x86_64-unknown-linux-musl/debug/milk add milk

Oh yeah, might wanna add /mocha/bin to PATH.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Languages