sbt-nix.g8
:snowflake: Get started with Nix in Scala
File Explorer
Download Latest Version (.zip)- ci.yml
- sbt-nix.yml
- wrapper.yml
- ci-nix.png
- poll.png
- app.nix
- Dockerfile
- Hello.scala
- build.sh
- Hello.scala
- Hello.scala
- Hello.scala
- Hello.scala
- ci.nix
- config.nix
- docker.nix
- pinned.nix
- pkgs.nix
- sbt.nix
- toc.nix
- build.properties
- Dependencies.scala
- plugins.sbt
- ci.yml
- sbt-nix.yml
- ci.nix
- config.nix
- docker.nix
- pinned.nix
- pkgs.nix
- sbt.nix
- build.properties
- Dependencies.scala
- plugins.sbt
- Hello.scala
- build.sbt
- default.nix
- default.properties
- LICENSE
- README.md
- shell.nix
- .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 Recommendedcurl -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
EasyPrerequisites
- 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
Was this content helpful?
(0 ratings)
