Skip to content

Instantly share code, notes, and snippets.

@pmuens
Last active July 30, 2022 15:04
Show Gist options
  • Save pmuens/7c12fe087f51770c2bf097ff53167cd3 to your computer and use it in GitHub Desktop.
Save pmuens/7c12fe087f51770c2bf097ff53167cd3 to your computer and use it in GitHub Desktop.
Protostar Setup / Usage

Protostar

Building Protostar

  1. nix-shell
  2. python -m venv .venv
  3. source .venv/bin/activate
  4. pip install --upgrade pip
  5. pip install poetry
  6. poetry install
  7. poe test
  8. poe build
  9. cp -r dist/ ~/Downloads/

Setting-up a New Protostar Project

  1. cd ~/Downloads
  2. ./dist/protostar/protostar init (name the project my-proj)
  3. cd my-proj
  4. mkdir bin
  5. mv ../dist ./bin
  6. ln -sf ./bin/dist/protostar/protostar protostar
  7. protostar test

Additional Resources

{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell {
buildInputs = [
python37Full
darwin.apple_sdk.frameworks.Accelerate
gmp
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment