nix expressions for building lein projects with mvn2nix.
- Copy any
:plugins
defined in yourproject.clj
to:pom-plugins
. - If you use a custom wagon for downloading dependencies, add the corresponding
maven extension to
:extensions
in yourproject.clj
. For example, if you uselein-maven-s3-wagon
, you can addmaven-s3-wagon
to:extensions
. - Run
lein pom
- Run
mvn org.nixos.mvn2nix:mvn2nix-maven-plugin:mvn2nix
Steps 3 and 4 must be performed whenever any dependencies change.
nix-build -I project=/path/to/lein/project
Use the release.nix
in this repository as the nix expression for evaluation.
Set the project
input to a checkout of the project you want to build.