Fork me on GitHub

I need to run a custom main when starting my REPL, but I'd still like CIDER to inject the version of deps and middleware to it. I have setup my main to pass in the CLI options to the nREPL cmdline -main, so I can modify this to be the jack in command:

/opt/homebrew/bin/clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version "1.0.0"} cider/cider-nrepl {:mvn/version "0.28.6"}}}' -M:dev -m user --middleware '[cider.nrepl/cider-middleware]'
where the :dev alias is just
{:dev {:extra-paths ["dev"]
        :extra-deps {org.clojure/tools.namespace {:mvn/version "1.3.0"}}
        :jvm-opts ["-ea"]}}
the problem I'm having now is trying to automate this via .dir-locals.el. It would be pretty handy to allow me to specify everything after the -Sdeps {,,,} map, but I don't think this is possible given the customizations cider.el provides