tazjin/nixery

Support for Java libraries

nicolaferraro opened this issue · 1 comments

I'm a developer of Apache Camel K and we have often issues with first time users that struggle to install it, because they need to configure an external container registry for our image builder.

I looked at Nixery and found it very promising for improving the getting started experience.

I was wondering if a schema like this can be added:

nixery.dev/java/org.apache.camel_camel-core_3.0.0/org.apache.camel_camel-timer_3.0.0

That would be generic for any java project, not only for us. Libraries could be downloaded from maven central directly.

Having it on the default instance of nixery.dev would improve our getting started experience because we won't require anymore any special configuration for first time users.

Best effort guarantees are ok for our use case.

If this is in line with your expectations from your project, I can also work on implementing this (just need some pointers to get started).

Hi @nicolaferraro,

I think one way to do that would be to write Nix derivations for these Java packages, as explained in the nixpkg manual. If the Nix derivations get included in the official nixpkgs you could use them directly with Nixery. Otherwise you could host them on your own fork of nixpkgs and point your own copy of Nixery to that fork.

I hope this helps!