[Nix-dev] buildMaven usage

zimbatm zimbatm at zimbatm.com
Wed Feb 15 20:08:07 CET 2017


Hi laverne,

did you manage to figure it out?

I think the usage would be to run
https://github.com/NixOS/mvn2nix-maven-plugin on your project and then in
your default.nix add something like:
```
{ pkgs ? import <nixpkgs> {}
, buildMaven ? pkgs.buildMaven
}:
buildMaven ./infofile
```

Where the `./infofile` is the file generated by mvn2nix (it should be a
JSON file).

As you can see not a lot of people are packaging java apps :)

Cheers,
z

On Fri, 10 Feb 2017 at 05:47 laverne <lists-laverne at schrock.email> wrote:

> Hi,
>
> I have a question about the function defined at
> https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/build-maven.nix
>
> I wanted to use it to build Spark Frame (http://sparkjava.com/), however,
> while the function is in all-packages, it isn't doesn't seem to be used
> anywhere else in nixpkgs. Is anyone here using the function in other
> projects that they would be willing to link to so that I could get a feel
> for how to use it?
>
> Thanks,
> Laverne
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20170215/f9eaf8d9/attachment.html>


More information about the nix-dev mailing list