Auto-patch project.clj dependencies
The current packaging practice with Leiningen-built Clojure packages in Debian involves maintaining a patch titled Lein_Local.
One of the purposes of this patch is to adjust dependency versions to the generic "debian", or in some cases (like org.clojure/clojure
), wildcards such as "1.x".
Because dependency versions often change between from one upstream release to another, maintaining these patches are a major maintenance burden of Clojure packages in Debian.
One idea that's been floated around #debian-clojure
is to have dh-clojure automatically make those adjustments at build time according to a set of replacement rules, similarly to how POMTransformer (via mh_patchpoms) works with pom.xml
files.