oraclejdk: remove JCE option

The unlimited JCE is bundled by default with Oracle JDK 9.
http://www.oracle.com/technetwork/java/javase/terms/readme/jdk9-readme-3852447.html
This commit is contained in:
taku0 2017-11-12 15:02:35 +09:00
parent 65424eac66
commit 194fed059d

View file

@ -7,7 +7,6 @@
, xorg ? null
, packageType ? "JDK" # JDK, JRE, or ServerJRE
, pluginSupport ? true
, installjce ? false
, glib
, libxml2
, ffmpeg_2
@ -34,16 +33,6 @@ let
downloadUrlBase = http://www.oracle.com/technetwork/java/javase/downloads;
jce =
if installjce then
requireFile {
name = "jce_policy-8.zip";
url = "${downloadUrlBase}/jce8-download-2133166.html";
sha256 = "0n8b6b8qmwb14lllk2lk1q1ahd3za9fnjigz5xn65mpg48whl0pk";
}
else
"";
rSubPaths = [
"lib/jli"
"lib/server"
@ -79,8 +68,7 @@ let result = stdenv.mkDerivation rec {
}
else abort "unknown package Type ${packageType}";
nativeBuildInputs = [ file ]
++ stdenv.lib.optional installjce unzip;
nativeBuildInputs = [ file ];
buildInputs = [ makeWrapper ];
@ -108,11 +96,6 @@ let result = stdenv.mkDerivation rec {
fi
done
if test -n "${jce}"; then
unzip ${jce}
cp -v UnlimitedJCEPolicy*/*.jar $out/lib/security
fi
if test -z "$pluginSupport"; then
rm -f $out/bin/javaws
fi