Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation for this change
I'm working on a derivation that uses clojure and depends on clojar. I also want to create a tool clj2nix where I take all dependencies of a clojure project, calculate the sha sums and generate fetchclojar calls. Just for any work with clojure on nix, a clojar fetch helper function is needed.
This fetchclojar is based on fetchmaven under java-modules, because clojar is a maven2 repository, and many clojure dependencies use maven central dependencies. So for every depenency it makes sense to attempt both. This is the approach taken in the new dependency resolution tool for clojure called tools.deps https://github.com/clojure/tools.deps.alpha/blob/4f24e4ea6911e9a30a14979386f2b2cc3ad2ecc8/src/main/clojure/clojure/tools/deps/alpha/util/maven.clj#L56-L57
I hope this gets merged and I can continue my work on getting clojure based packages into nixpkgs.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)