greglook / cljstyle

A tool for formatting Clojure code
Eclipse Public License 1.0
293 stars 39 forks source link

Static Build? #65

Closed socksy closed 3 years ago

socksy commented 3 years ago

I saw from the readme: "The native binaries are self-contained, so to install them simply place them on your path." which perked my attention, so I tried a binary on my NixOS box, but (as usual with NixOS) it fails to run with "no such file or directory", which means that it's dynamically linked (apparently it is only libz that I was missing on my platform, but for various reasons that's non trivial to get working in the system.

According to https://www.graalvm.org/reference-manual/native-image/StaticImages/ it should be possible to make a static image by passing in --static to the native-image call. I would make a PR to do that, but since I don't have a running version of graalvm I wouldn't be able to test it. Perhaps it's worth a try?

greglook commented 3 years ago

This should certainly be possible - I've been meaning to automate the image building process anyway, so I'll add a statically-compiled linux version to the list of things to build.

greglook commented 3 years ago

0.15.0 has a static linux binary.