Add argument to oraclejdk to allow installation of Java Cryptography Extension with unlimited strength. User needs to download these themselves, and need to accept a license agreement (Java SE BCL License Agreement)
This commit is contained in:
parent
21cfef0beb
commit
2066508131
@ -37,6 +37,11 @@ else
|
|||||||
jrePath=$out/jre
|
jrePath=$out/jre
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -n "$jce"; then
|
||||||
|
unzip $jce
|
||||||
|
cp -v jce/*.jar $jrePath/lib/security
|
||||||
|
fi
|
||||||
|
|
||||||
rpath=$rpath${rpath:+:}$jrePath/lib/$architecture/jli
|
rpath=$rpath${rpath:+:}$jrePath/lib/$architecture/jli
|
||||||
|
|
||||||
# set all the dynamic linkers
|
# set all the dynamic linkers
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
, xlibs ? null
|
, xlibs ? null
|
||||||
, installjdk ? true
|
, installjdk ? true
|
||||||
, pluginSupport ? true
|
, pluginSupport ? true
|
||||||
|
, installjce ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
|
assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
|
||||||
@ -24,6 +25,15 @@ let
|
|||||||
else
|
else
|
||||||
abort "jdk requires i686-linux or x86_64 linux";
|
abort "jdk requires i686-linux or x86_64 linux";
|
||||||
|
|
||||||
|
jce =
|
||||||
|
if installjce then
|
||||||
|
requireFile {
|
||||||
|
name = "jce_policy-6.zip";
|
||||||
|
url = http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html;
|
||||||
|
sha256 = "0qljzfxbikm8br5k7rkamibp1vkyjrf6blbxpx6hn4k46f62bhnh";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
null;
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
@ -65,7 +75,7 @@ stdenv.mkDerivation {
|
|||||||
[stdenv.gcc.libc] ++
|
[stdenv.gcc.libc] ++
|
||||||
(if swingSupport then [xlibs.libX11 xlibs.libXext xlibs.libXtst xlibs.libXi xlibs.libXp xlibs.libXt] else []);
|
(if swingSupport then [xlibs.libX11 xlibs.libXext xlibs.libXtst xlibs.libXi xlibs.libXp xlibs.libXt] else []);
|
||||||
|
|
||||||
inherit swingSupport pluginSupport architecture;
|
inherit swingSupport pluginSupport architecture jce;
|
||||||
inherit (xlibs) libX11;
|
inherit (xlibs) libX11;
|
||||||
|
|
||||||
mozillaPlugin = if installjdk then "/jre/lib/${architecture}/plugins" else "/lib/${architecture}/plugins";
|
mozillaPlugin = if installjdk then "/jre/lib/${architecture}/plugins" else "/lib/${architecture}/plugins";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user