jlesquembre / clj-nix

Nix helpers for Clojure projects
https://jlesquembre.github.io/clj-nix/
Eclipse Public License 2.0
155 stars 22 forks source link

can this be used for application development? #29

Closed drewverlee closed 2 years ago

drewverlee commented 2 years ago

I'm trying to understand how I would use Nix and NixOs to setup an application development context to build clojure applications. The Derivations in the API section of the readme seem to talk in terms of producing clojure applications, but not developing them e.g loading up emacs, connecting to a repl, using chrome to search, etc... I assume all of that should be managed by NixOs the same way it's currently done on my OS (ubuntu).

Wasn't sure where to ask questions of this nature, so i'm using a github issue. feel free to redirect and thanks for building this :)

jlesquembre commented 2 years ago

Hi, totally fine to ask here, but other platforms (like slack) are also ok

clj-nix is more focused on the building part, but I added some helpers you can use for development.

The way I use Nix to develop clojure applications:

The part where clj-nix can help you during development is with custom babashka helper scripts. You can use the bbTasksFromFile function to expose clojure functions as shell functions. (an execute those with babashka)

I hope that clarifies it a bit, feel free to ask anything unclear

jlesquembre commented 2 years ago

I'm closing it, but feel free to re-open it (or open a new one) if you have more questions.