Fork me on GitHub
#tools-deps
<
2018-07-22
>
uwo19:07:07

are :exclusions only for mvn deps, or do they work for git deps as well? Running clj -Stree made me think they were, because the exclusion list appeared to be applied to the dep tree

uwo21:07:18

awesome thanks!

hlolli20:07:19

So I succeeded with using tools.deps for generating nix-expressions, https://github.com/hlolli/clj2nix now it should be easy for nix users to start bombarding clojure-based application into nixpkgs, or use nix to build/deploy clojure applications. If you're a nix user, please give it a try 🙂

dominicm21:07:49

@hlolli how did you do it?

hlolli22:07:28

@dominicm after looking at a nix function fetchMaven, I realized that all maven2 remote url's follow a pattern, from there I discovered fetchMavenArtifact, which I use, for both clojar and maven central. Just try both for each dep, and both clojar and maven central work with same url format.

dominicm22:07:29

@hlolli do you handle git and local?

hlolli22:07:26

good question. I don't handle it automatically. And it's possible to do it.

hlolli22:07:02

Another thing I need to add is classifier. Which I don't handle, or the funtcion fetchMavenArtifact doesn't handle it.

dominicm22:07:09

I'm not certain if t.d.a handles classifier yet, I might be wrong

hlolli22:07:58

I'm about to test it 🙂, curious.

Alex Miller (Clojure team)22:07:38

With the caveat that classifiers do not distinguish in a lib (they’re part of the coord, not the lib key), so you can’t use multiple classifiers (or no classifier) for the same lib at the same time

Alex Miller (Clojure team)23:07:21

It also only handles jars and ignores other extension types