summary refs log tree commit diff
path: root/pkgs/build-support/fetchmavenartifact
Commit message (Collapse)AuthorAge
* fetchMavenArtifact: prevent leaking nix hash to jar nameVolth2017-06-25
|
* fetchMavenArtifact: init (#16825)Renzo Carbonara2016-07-19
fetchMavenArtifact downloads a Maven artifact given a group id, an artifact id, and a version. Example usage: org_apache_httpcomponents_httpclient_4_5_2 = fetchMavenArtifact { groupId = "org.apache.httpcomponents"; artifactId = "httpclient"; version = "4.5.2"; sha256 = "0ms00zc28pwqk83nwwbafhq6p8zci9mrjzbqalpn6v0d80hwdzqd"; # Optionally: repos = [ ... urls to some Maven repos to use ... ]; # Optionally: url, urls - pointing directly to a specific jar url. }; Now `org_apache_httpcomponents_httpclient_4_5_2.jar` points to the downloaded JAR file, while `org_apache_httpcomponents_httpclient_4_5_2` refers to a derivation that when used used in `buildInputs` will be automatically added to the Java classpath.