From f0568c22282c9fdb56172597225bb54bb75afaff Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Fri, 11 Dec 2020 11:43:23 +0100 Subject: 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 --- pkgs/build-support/fetchmavenartifact/default.nix | 8 ++++---- pkgs/development/interpreters/clojurescript/lumo/deps.nix | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'pkgs') diff --git a/pkgs/build-support/fetchmavenartifact/default.nix b/pkgs/build-support/fetchmavenartifact/default.nix index 42ad7603a8f7..b1482a3578b2 100644 --- a/pkgs/build-support/fetchmavenartifact/default.nix +++ b/pkgs/build-support/fetchmavenartifact/default.nix @@ -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 diff --git a/pkgs/development/interpreters/clojurescript/lumo/deps.nix b/pkgs/development/interpreters/clojurescript/lumo/deps.nix index 4f3beff3b819..50f1c4af2118 100644 --- a/pkgs/development/interpreters/clojurescript/lumo/deps.nix +++ b/pkgs/development/interpreters/clojurescript/lumo/deps.nix @@ -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 { -- cgit v1.2.3 From ba5e2222458a52357a3ba5873d88779d5c223269 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Fri, 11 Dec 2020 13:58:19 +0100 Subject: fetchMavenArtifact: fix generated url --- pkgs/build-support/fetchmavenartifact/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs') diff --git a/pkgs/build-support/fetchmavenartifact/default.nix b/pkgs/build-support/fetchmavenartifact/default.nix index b1482a3578b2..42162638e72d 100644 --- a/pkgs/build-support/fetchmavenartifact/default.nix +++ b/pkgs/build-support/fetchmavenartifact/default.nix @@ -50,7 +50,7 @@ let (replaceChars ["."] ["/"] groupId) artifactId version - "${artifactId}-${version}-${optionalString (!isNull classifier) "-${classifier}"}.jar" + "${artifactId}-${version}${optionalString (!isNull classifier) "-${classifier}"}.jar" ]; urls_ = if url != "" then [url] -- cgit v1.2.3