sbt-nix.g8

(โ˜… 117)

:snowflake: Get started with Nix in Scala

  • .gitignore
  • app.nix
  • build.sbt
  • LICENSE
  • README.md
  • shell.nix
  • wrapper.nix

# Installation Guide

1. Get the code
git clone https://github.com/gvolpe/sbt-nix.g8

Downloads the entire project code from GitHub to your computer.

cd sbt-nix.g8

Moves into the project folder you just downloaded.

2. Official Install Script

Easy Recommended
curl -L https://nixos.org/nix/install | sh

Downloads and runs the official install script in one line โ€” this handles the full setup automatically.

โœ… After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.

Pulled directly from this repo's README.

3. Docker

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
sbt "sbt-nix-native-default/docker:publishLocal"

Type this command into your terminal and run it.

docker run -it sbt-nix-bootstrap-default:0.1.0-SNAPSHOT

Runs the built image as an actual container.

nix-build nix/docker.nix -o result-base-jre

Type this command into your terminal and run it.

docker load -i result-base-jre

Type this command into your terminal and run it.

sbt "sbt-nix-native-custom/docker:publishLocal"

Type this command into your terminal and run it.

โœ… Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.

Pulled directly from this repo's README.

// repository documentation