about summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorRob Vermaas <rob.vermaas@gmail.com>2013-10-08 11:30:54 +0200
committerRob Vermaas <rob.vermaas@gmail.com>2013-10-08 11:31:12 +0200
commit206650813118dc3b6f008fc03284abeeed2a953a (patch)
tree6c3a9c84f9cf18e691cadeec1ed2b5ec80fdc5b8 /pkgs/development/compilers
parent21cfef0beb2ebb5763420325e3abf45ba5e820aa (diff)
downloadnixlib-206650813118dc3b6f008fc03284abeeed2a953a.tar
nixlib-206650813118dc3b6f008fc03284abeeed2a953a.tar.gz
nixlib-206650813118dc3b6f008fc03284abeeed2a953a.tar.bz2
nixlib-206650813118dc3b6f008fc03284abeeed2a953a.tar.lz
nixlib-206650813118dc3b6f008fc03284abeeed2a953a.tar.xz
nixlib-206650813118dc3b6f008fc03284abeeed2a953a.tar.zst
nixlib-206650813118dc3b6f008fc03284abeeed2a953a.zip
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)
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/jdk/dlj-bundle-builder.sh5
-rw-r--r--pkgs/development/compilers/jdk/jdk6-linux.nix12
2 files changed, 16 insertions, 1 deletions
diff --git a/pkgs/development/compilers/jdk/dlj-bundle-builder.sh b/pkgs/development/compilers/jdk/dlj-bundle-builder.sh
index cf59a28164bb..028164ac3955 100644
--- a/pkgs/development/compilers/jdk/dlj-bundle-builder.sh
+++ b/pkgs/development/compilers/jdk/dlj-bundle-builder.sh
@@ -37,6 +37,11 @@ else
   jrePath=$out/jre
 fi
 
+if test -n "$jce"; then
+  unzip $jce
+  cp -v jce/*.jar $jrePath/lib/security
+fi
+
 rpath=$rpath${rpath:+:}$jrePath/lib/$architecture/jli
 
 # set all the dynamic linkers
diff --git a/pkgs/development/compilers/jdk/jdk6-linux.nix b/pkgs/development/compilers/jdk/jdk6-linux.nix
index 340bbdf91ac9..97ec6b56305c 100644
--- a/pkgs/development/compilers/jdk/jdk6-linux.nix
+++ b/pkgs/development/compilers/jdk/jdk6-linux.nix
@@ -6,6 +6,7 @@
 , xlibs ? null
 , installjdk ? true
 , pluginSupport ? true
+, installjce ? false
 }:
 
 assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
@@ -24,6 +25,15 @@ let
     else
       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
 
 stdenv.mkDerivation {
@@ -65,7 +75,7 @@ stdenv.mkDerivation {
     [stdenv.gcc.libc] ++
     (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;
 
   mozillaPlugin = if installjdk then "/jre/lib/${architecture}/plugins" else "/lib/${architecture}/plugins";