about summary refs log tree commit diff
path: root/pkgs/build-support/fetchmavenartifact
AgeCommit message (Collapse)AuthorFilesLines
2023-02-02fetchMavenArtifact: add classifier to filenameRobert Schütz1-2/+4
2022-12-15lib.replaceChars: warn about being a deprecated aliasArtturin1-3/+3
replaceStrings has been in nix since 2015(nix 1.10) so it is safe to remove the fallback https://github.com/nixos/nix/commit/d6d5885c1567454754a0d260521bafa0bd5e7fdb
2021-01-24treewide: stdenv.lib -> libPavol Rusnak1-9/+8
2020-12-11fetchMavenArtifact: fix generated urlRobert Hensing1-1/+1
2020-12-11fetchMavenArtifact: switch mirrors to httpsRobert Hensing1-4/+4
Maven repositories are disabling HTTP support for security. Even though Nix adds some security with its own hash validation, broken mirrors are a, well, suboptimal experience. I don't know of any plans by sonatype, but it seems like a matter of time. https://www.lightbend.com/blog/lightbend-to-require-https-on-repos-starting-august-5-2020
2020-12-05add classifier as an argumenthlolli1-15/+8
2020-11-14fetchMavenArtifact: support artifact classifier syntaxhlolli1-5/+14
2020-06-12treewide: central.maven.org -> repo1.maven.orgvolth1-1/+1
2020-04-10treewide: Per RFC45, remove all unquoted URLsMichael Reilly1-4/+4
2017-06-25fetchMavenArtifact: prevent leaking nix hash to jar nameVolth1-1/+1
2016-07-19fetchMavenArtifact: init (#16825)Renzo Carbonara1-0/+75
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.