fetchMavenArtifact: switch mirrors to https

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
This commit is contained in:
Robert Hensing 2020-12-11 11:43:23 +01:00
parent 10fafe2125
commit f0568c2228
2 changed files with 7 additions and 7 deletions

View File

@ -3,10 +3,10 @@
{ fetchurl, stdenv }:
let
defaultRepos = [
"http://repo1.maven.org/maven2"
"http://oss.sonatype.org/content/repositories/releases"
"http://oss.sonatype.org/content/repositories/public"
"http://repo.typesafe.com/typesafe/releases"
"https://repo1.maven.org/maven2"
"https://oss.sonatype.org/content/repositories/releases"
"https://oss.sonatype.org/content/repositories/public"
"https://repo.typesafe.com/typesafe/releases"
];
in

View File

@ -4,9 +4,9 @@
let repos = [
"https://repo.clojars.org/"
"https://repo1.maven.org/"
"http://oss.sonatype.org/content/repositories/releases/"
"http://oss.sonatype.org/content/repositories/public/"
"http://repo.typesafe.com/typesafe/releases/"
"https://oss.sonatype.org/content/repositories/releases/"
"https://oss.sonatype.org/content/repositories/public/"
"https://repo.typesafe.com/typesafe/releases/"
];
in rec {