oraclejdk14: Removed as it's end of life since 09/2020

This commit is contained in:
Benjamin Asbach 2022-06-11 02:37:30 +03:00
parent e0169d7a9d
commit 1b18f0e375
2 changed files with 0 additions and 56 deletions

View file

@ -1,54 +0,0 @@
{ lib, stdenv
, requireFile
, xorg
, zlib
, freetype
, alsa-lib
, setJavaClassPath
}:
let result = stdenv.mkDerivation rec {
pname = "oraclejdk";
version = "14.0.2";
src = requireFile {
name = "jdk-${version}_linux-x64_bin.tar.gz";
url = "https://www.oracle.com/java/technologies/javase-jdk14-downloads.html";
sha256 = "cb811a86926cc0f529d16bec7bd2e25fb73e75125bbd1775cdb9a96998593dde";
};
installPhase = ''
mv ../$sourceRoot $out
mkdir -p $out/nix-support
printWords ${setJavaClassPath} > $out/nix-support/propagated-build-inputs
# Set JAVA_HOME automatically.
cat <<EOF >> $out/nix-support/setup-hook
if [ -z "\''${JAVA_HOME-}" ]; then export JAVA_HOME=$out; fi
EOF
'';
postFixup = ''
rpath="$out/lib/jli:$out/lib/server:$out/lib:${lib.strings.makeLibraryPath [ stdenv.cc.cc zlib xorg.libX11 xorg.libXext xorg.libXtst xorg.libXi xorg.libXrender freetype alsa-lib]}"
for f in $(find $out -name "*.so") $(find $out -type f -perm -0100); do
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$f" || true
patchelf --set-rpath "$rpath" "$f" || true
done
for f in $(find $out -name "*.so") $(find $out -type f -perm -0100); do
if ldd "$f" | fgrep 'not found'; then echo "in file $f"; fi
done
'';
passthru.jre = result;
passthru.home = result;
dontStrip = true; # See: https://github.com/NixOS/patchelf/issues/10
meta = with lib; {
license = licenses.unfree;
platforms = [ "x86_64-linux" ];
};
}; in result

View file

@ -13265,8 +13265,6 @@ with pkgs;
oraclejdk11 = callPackage ../development/compilers/oraclejdk/jdk11-linux.nix { };
oraclejdk14 = callPackage ../development/compilers/oraclejdk/jdk14-linux.nix { };
jasmin = callPackage ../development/compilers/jasmin { };
java-service-wrapper = callPackage ../tools/system/java-service-wrapper {