summary refs log tree commit diff
path: root/pkgs/development/compilers/openjdk/10.nix
diff options
context:
space:
mode:
authorMatt McHenry <github@matt.mchenryfamily.org>2018-03-25 20:14:55 -0400
committerMatt McHenry <github@matt.mchenryfamily.org>2018-03-25 20:23:12 -0400
commitaabf45c1637f3de98c5ca89188573985fbff153d (patch)
tree1a128661ecfc14dcaf1f655f5f2d5a7936e853c8 /pkgs/development/compilers/openjdk/10.nix
parenta0c525bd0a93fba70471392b8651882b52197788 (diff)
downloadnixpkgs-aabf45c1637f3de98c5ca89188573985fbff153d.tar
nixpkgs-aabf45c1637f3de98c5ca89188573985fbff153d.tar.gz
nixpkgs-aabf45c1637f3de98c5ca89188573985fbff153d.tar.bz2
nixpkgs-aabf45c1637f3de98c5ca89188573985fbff153d.tar.lz
nixpkgs-aabf45c1637f3de98c5ca89188573985fbff153d.tar.xz
nixpkgs-aabf45c1637f3de98c5ca89188573985fbff153d.tar.zst
nixpkgs-aabf45c1637f3de98c5ca89188573985fbff153d.zip
openjdk10: minor cleanups
* with only one source bundle (per JEP-296), we can use src instead of
  srcs, and avoid the need to cd in prePatch

* fetch sources from jdk10u instead of jdk10, to make it easier to
  grab updates when they start coming.

* removed commented-out code that became irrelevant in the 8 -> 9
  transition (*.pf files, infinality font rendering)

* create jdk10, jre10, and jre10_headless attributes in
  all-packages.nix
Diffstat (limited to 'pkgs/development/compilers/openjdk/10.nix')
-rw-r--r--pkgs/development/compilers/openjdk/10.nix23
1 files changed, 5 insertions, 18 deletions
diff --git a/pkgs/development/compilers/openjdk/10.nix b/pkgs/development/compilers/openjdk/10.nix
index d84b0c30242..2a0c7a1ac01 100644
--- a/pkgs/development/compilers/openjdk/10.nix
+++ b/pkgs/development/compilers/openjdk/10.nix
@@ -4,7 +4,6 @@
 , libjpeg, giflib
 , setJavaClassPath
 , minimal ? false
-#, enableInfinality ? true # font rendering patch
 , enableGnome2 ? true, gtk2, gnome_vfs, glib, GConf
 }:
 
@@ -20,18 +19,16 @@ let
 
   update = "10";
   build = "46";
-  baseurl = "http://hg.openjdk.java.net/jdk/jdk10";
   repover = "jdk-${update}+${build}";
   paxflags = if stdenv.isi686 then "msp" else "m";
-  jdk10 = fetchurl {
-             url = "${baseurl}/archive/${repover}.tar.gz";
-             sha256 = "1n5jccf2rw15hzwppnvy87bysb84g3fcnkxbjhj8gi0iv79dxlc7";
-          };
+
   openjdk10 = stdenv.mkDerivation {
     name = "openjdk-${update}-b${build}";
 
-    srcs = [ jdk10 ];
-    sourceRoot = ".";
+    src = fetchurl {
+      url = "http://hg.openjdk.java.net/jdk-updates/jdk10u/archive/${repover}.tar.gz";
+      sha256 = "1a2cjad816qilsigkq035rqzfhzmq5vaz1klilrrws456flbsjlg";
+    };
 
     outputs = [ "out" "jre" ];
 
@@ -44,10 +41,6 @@ let
       gtk2 gnome_vfs GConf glib
     ];
 
-    prePatch = ''
-      cd jdk10*
-    '';
-
     patches = [
       ./fix-java-home-jdk10.patch
       ./read-truststore-from-env-jdk10.patch
@@ -126,12 +119,6 @@ let
 
       lndir $jre/lib/openjdk/jre $out/lib/openjdk/jre
 
-      # Make sure cmm/*.pf are not symlinks:
-      # https://youtrack.jetbrains.com/issue/IDEA-147272
-      # in 9, it seems no *.pf files end up in $out ... ?
-      # rm -rf $out/lib/openjdk/jre/lib/cmm
-      # ln -s {$jre,$out}/lib/openjdk/jre/lib/cmm
-
       # Set PaX markings
       exes=$(file $out/lib/openjdk/bin/* $jre/lib/openjdk/jre/bin/* 2> /dev/null | grep -E 'ELF.*(executable|shared object)' | sed -e 's/: .*$//')
       echo "to mark: *$exes*"