Merge pull request #103755 from hlolli/feature/fetchmaven-classifiers

authored by Jörg Thalheim and committed by GitHub 1df84d17 5b7667a1

+4 -2
+4 -2
pkgs/build-support/fetchmavenartifact/default.nix
··· 17 artifactId 18 , # Example: "4.3.6" 19 version 20 , # List of maven repositories from where to fetch the artifact. 21 # Example: [ http://oss.sonatype.org/content/repositories/public ]. 22 repos ? defaultRepos ··· 48 (replaceChars ["."] ["/"] groupId) 49 artifactId 50 version 51 - "${artifactId}-${version}.jar" 52 ]; 53 urls_ = 54 if url != "" then [url] ··· 56 else map mkJarUrl repos; 57 jar = 58 fetchurl ( 59 - builtins.removeAttrs args ["groupId" "artifactId" "version" "repos" "url" ] 60 // { urls = urls_; name = "${name_}.jar"; } 61 ); 62 in
··· 17 artifactId 18 , # Example: "4.3.6" 19 version 20 + , # Example: "jdk11" 21 + classifier ? null 22 , # List of maven repositories from where to fetch the artifact. 23 # Example: [ http://oss.sonatype.org/content/repositories/public ]. 24 repos ? defaultRepos ··· 50 (replaceChars ["."] ["/"] groupId) 51 artifactId 52 version 53 + "${artifactId}-${version}-${optionalString (!isNull classifier) "-${classifier}"}.jar" 54 ]; 55 urls_ = 56 if url != "" then [url] ··· 58 else map mkJarUrl repos; 59 jar = 60 fetchurl ( 61 + builtins.removeAttrs args ["groupId" "artifactId" "version" "classifier" "repos" "url" ] 62 // { urls = urls_; name = "${name_}.jar"; } 63 ); 64 in