Skip to content

Quickstart

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, I suggest just copy the parts you need from the template (located here: clj-nix/templates/default)