2018-10-13 15:42:21 +01:00
|
|
|
let
|
2018-11-03 12:34:33 +00:00
|
|
|
makePackage = { version, buildNumber, packageType, vmType, sha256 }: import ./jdk-linux-base.nix {
|
2018-10-13 15:42:21 +01:00
|
|
|
name = if packageType == "jdk"
|
|
|
|
then
|
|
|
|
"adoptopenjdk-${vmType}-bin-${version}"
|
|
|
|
else
|
|
|
|
"adoptopenjdk-${packageType}-${vmType}-bin-${version}";
|
2018-11-03 12:34:33 +00:00
|
|
|
|
|
|
|
url = "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-${version}%2B${buildNumber}/OpenJDK11-${packageType}_x64_linux_${vmType}_${version}_${buildNumber}.tar.gz";
|
|
|
|
|
2018-10-13 15:42:21 +01:00
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
jdk-hotspot = makePackage {
|
2018-11-03 12:34:33 +00:00
|
|
|
version = "11";
|
|
|
|
buildNumber = "28";
|
2018-10-13 15:42:21 +01:00
|
|
|
packageType = "jdk";
|
|
|
|
vmType = "hotspot";
|
|
|
|
sha256 = "e1e18fc9ce2917473da3e0acb5a771bc651f600c0195a3cb40ef6f22f21660af";
|
|
|
|
};
|
|
|
|
jre-hotspot = makePackage {
|
2018-11-03 12:34:33 +00:00
|
|
|
version = "11";
|
|
|
|
buildNumber = "28";
|
2018-10-13 15:42:21 +01:00
|
|
|
packageType = "jre";
|
|
|
|
vmType = "hotspot";
|
|
|
|
sha256 = "346448142d46c6e51d0fadcaadbcde31251d7678922ec3eb010fcb1b6e17804c";
|
|
|
|
};
|
|
|
|
jdk-openj9 = makePackage {
|
2018-11-03 12:34:33 +00:00
|
|
|
version = "11.0.1";
|
|
|
|
buildNumber = "13";
|
2018-10-13 15:42:21 +01:00
|
|
|
packageType = "jdk";
|
|
|
|
vmType = "openj9";
|
2018-11-03 12:34:33 +00:00
|
|
|
sha256 = "765947ab9457a29d2aa9d11460a4849611343c1e0ea3b33b9c08409cd4672251";
|
2018-10-13 15:42:21 +01:00
|
|
|
};
|
|
|
|
jre-openj9 = makePackage {
|
2018-11-03 12:34:33 +00:00
|
|
|
version = "11.0.1";
|
|
|
|
buildNumber = "13";
|
2018-10-13 15:42:21 +01:00
|
|
|
packageType = "jre";
|
|
|
|
vmType = "openj9";
|
2018-11-03 12:34:33 +00:00
|
|
|
sha256 = "a016413fd8415429b42e543fed7a1bee5010b1dbaf71d29a26e1c699f334c6ff";
|
2018-10-13 15:42:21 +01:00
|
|
|
};
|
|
|
|
}
|