native binaries from Scala with sbt, sbt-native-packager, graalvm, and nix flakes

https://codeberg.org/benjaminedwardwebb/nix-graalvm-scala-example

Hi there! Sharing a little example project I put together a while back that builds native binaries from Scala code using sbt, graalvm, and nix.

It's dead simple and merely glues together the different technologies involved. But maybe a nix-curious Scala developer stumbling on this community will find it interesting as a template to copy. It relies on https://github.com/zaninime/sbt-derivation, which has worked well in my very limited usage of it.

8 points · 1 comments · view on lemmy.world

1 Comments

UFODivebomb@programming.dev · 2 pts · 3y

Thanks! Big nix fan myself and very happy to see some Scala derivation help.