about summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorMatthew Glazar <strager.nds@gmail.com>2019-04-20 21:13:45 -0700
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2019-04-25 13:23:11 +0200
commit1a0098042d8475730b33055afcaaaa699bfa0bcb (patch)
tree4339917c86b631b7366f84b7de825bccf99763ef /pkgs/development/compilers
parent0094dd6eaaff9a4911497c637c3d3950929e147a (diff)
downloadnixlib-1a0098042d8475730b33055afcaaaa699bfa0bcb.tar
nixlib-1a0098042d8475730b33055afcaaaa699bfa0bcb.tar.gz
nixlib-1a0098042d8475730b33055afcaaaa699bfa0bcb.tar.bz2
nixlib-1a0098042d8475730b33055afcaaaa699bfa0bcb.tar.lz
nixlib-1a0098042d8475730b33055afcaaaa699bfa0bcb.tar.xz
nixlib-1a0098042d8475730b33055afcaaaa699bfa0bcb.tar.zst
nixlib-1a0098042d8475730b33055afcaaaa699bfa0bcb.zip
oraclejdk: use working mirror for download
http://download.oracle.com/otn-pub/ was recently renamed to
http://download.oracle.com/otn/ and now requires authentication with an
Oracle account. http://download.oracle.com/otn-pub/ links don't work
anymore, so installing oraclejdk fails.

Switch to http://javadl.oracle.com/webapps/download/GetFile/, which does
not require authentication. This fixes installing oraclejdk.

Note: The URL for JCE is still broken; this commit only fixes the URL
for the JDK.
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/oraclejdk/jdk-linux-base.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/compilers/oraclejdk/jdk-linux-base.nix b/pkgs/development/compilers/oraclejdk/jdk-linux-base.nix
index 8342c9fd3359..ea6b9d2a9fe7 100644
--- a/pkgs/development/compilers/oraclejdk/jdk-linux-base.nix
+++ b/pkgs/development/compilers/oraclejdk/jdk-linux-base.nix
@@ -89,8 +89,9 @@ let result = stdenv.mkDerivation rec {
       armv7l-linux  = "linux-arm32-vfp-hflt";
       aarch64-linux = "linux-arm64-vfp-hflt";
     }.${stdenv.hostPlatform.system};
+    javadlPlatformName = "linux-i586";
   in fetchurl {
-   url = "http://download.oracle.com/otn-pub/java/jdk/${productVersion}u${patchVersion}-b${buildVersion}/${releaseToken}/jdk-${productVersion}u${patchVersion}-${platformName}.tar.gz";
+   url = "http://javadl.oracle.com/webapps/download/GetFile/1.${productVersion}.0_${patchVersion}-b${buildVersion}/${releaseToken}/${javadlPlatformName}/jdk-${productVersion}u${patchVersion}-${platformName}.tar.gz";
    curlOpts = "-b oraclelicense=a";
    sha256 = sha256.${stdenv.hostPlatform.system};
   };