Nix + flake + Clojure template.
Develop and Compile and Ship with Nix.
nix develop
: Enter dev-shell.make test
: Run tests via kaocha.make format
: Format files.make build
: Compile project. Then, you can find binary at./result/bin/nix-flake-clojure
.make lock
: Regeneratedeps-lock.json
. This job is automatically run if lock is needed.
Add nix-flake-clojure
into inputs
.
{
inputs = {
nix-flake-clojure = {
url = "github:conao3-playground/nix-flake-clojure";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}
And use it like home-manager.
{
home = {
packages = [
inputs.nix-flake-clojure.packages.${system}.default
];
};
}