Usage
This project requires Nix Flakes
New project template
nix flake new --template github:jlesquembre/clj-nix ./my-new-project
cd ./my-new-project
git init
git add .
# Build and test the binary
nix build .
./result/bin/cljdemo
Remember that with flakes, only the files tracked by git are recognized by Nix.
Templates are for new projects. If you want to add clj-nix to an existing
project, copy the parts you need from the template (located at:
clj-nix/templates/default).
Next Steps
After creating your project:
- Generate a lock file: See Lock File documentation
- Customize your build: See API documentation or Nix Module documentation
- Follow the Tutorial for advanced configurations