From 51c69ea60e20031ee6774006645c3a8384eebe96 Mon Sep 17 00:00:00 2001 From: Gergely Risko Date: Thu, 16 May 2013 10:34:35 +0200 Subject: [PATCH] oracle jdk/jre: use requireFile instead of fetchurl (merge #537) The user has to accept the EULA nowadays on the oracle website. --- pkgs/development/compilers/jdk/jdk6-linux.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/compilers/jdk/jdk6-linux.nix b/pkgs/development/compilers/jdk/jdk6-linux.nix index 368f0170687..340bbdf91ac 100644 --- a/pkgs/development/compilers/jdk/jdk6-linux.nix +++ b/pkgs/development/compilers/jdk/jdk6-linux.nix @@ -1,6 +1,6 @@ { swingSupport ? true , stdenv -, fetchurl +, requireFile , unzip , makeWrapper , xlibs ? null @@ -32,13 +32,15 @@ stdenv.mkDerivation { src = if stdenv.system == "i686-linux" then - fetchurl { - url = http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-i586.bin; + requireFile { + name = "jdk-6u45-linux-i586.bin"; + url = http://www.oracle.com/technetwork/java/javase/downloads/jdk6downloads-1902814.html; sha256 = "0mx3d2qlal5zyz1a7ld1yk2rs8pf9sjxs2jzasais3nq30jmlfym"; } else if stdenv.system == "x86_64-linux" then - fetchurl { - url = http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin; + requireFile { + name = "jdk-6u45-linux-x64.bin"; + url = http://www.oracle.com/technetwork/java/javase/downloads/jdk6downloads-1902814.html; sha256 = "1s0j1pdr6y8c816d9i86rx4zp12nbhmas1rxksp0r53cn7m3ljbb"; } else