Merge pull request #44091 from asymmetric/asymmetric/maven-authn

buildMaven: Check for authenticated attribute
This commit is contained in:
Thomas Tuegel 2018-07-25 12:10:22 -05:00 committed by GitHub
commit 6fbcbaf404
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,10 +16,11 @@ infoFile: let
script = writeText "build-maven-repository.sh" ''
${lib.concatStrings (map (dep: let
inherit (dep)
url sha1 groupId artifactId version
authenticated metadata repository-id;
url sha1 groupId artifactId
version metadata repository-id;
versionDir = dep.unresolved-version or version;
authenticated = dep.authenticated or false;
fetch = (if authenticated then requireFile else fetchurl) {
inherit url sha1;