git.iko.soy/typeable/nixpkgs
on master help sign in
openjdk-darwin: use a sensible crypto policy

We should really move to a source build of openjdk on Darwin, but that's tricky so for now we continue to hack around it and do stuff like this, even though crypto export polices are stupid and make no sense. No, I'm not bitter at all that I need to do this ๐Ÿ˜ฉ

commit0cfa1b0ddeb5fb4083eea532ea9eccfbc4ad9d98 authorDan Peebles <pumpkin@me.com> dateWed 15 Mar 2017, 16:37 (10 years ago) parent376d960
1 file changed+10โˆ’1
pkgs/development/compilers/openjdk-darwin/8.nix+10โˆ’1
pkgs/development/compilers/openjdk-darwin/8.nix+10โˆ’1
@@ -1,10 +1,16 @@
11{ stdenv, fetchurl, unzip, setJavaClassPath, freetype }:
22let
3+ jce-policies = fetchurl {
4+ # Ugh, unversioned URLs... I hope this doesn't change often enough to cause pain before we move to a Darwin source build of OpenJDK!
5+ url = "http://cdn.azul.com/zcek/bin/ZuluJCEPolicies.zip";
6+ sha256 = "0nk7m0lgcbsvldq2wbfni2pzq8h818523z912i7v8hdcij5s48c0";
7+ };
8+
39 jdk = stdenv.mkDerivation {
410 name = "zulu1.8.0_66-8.11.0.1";
511
612 src = fetchurl {
7โˆ’ url = http://cdn.azulsystems.com/zulu/bin/zulu1.8.0_66-8.11.0.1-macosx.zip;
13+ url = "http://cdn.azulsystems.com/zulu/bin/zulu1.8.0_66-8.11.0.1-macosx.zip";
814 sha256 = "0pvbpb3vf0509xm2x1rh0p0w4wmx50zf15604p28z1k8ai1a23sz";
915 curlOpts = "-H Referer:https://www.azul.com/downloads/zulu/zulu-linux/";
1016 };
@@ -15,6 +21,9 @@ let
1521 mkdir -p $out
1622 mv * $out
1723
24+ unzip ${jce-policies}
25+ mv -f ZuluJCEPolicies/*.jar $out/jre/lib/security/
26+
1827 # jni.h expects jni_md.h to be in the header search path.
1928 ln -s $out/include/darwin/*_md.h $out/include/
2029 '';