2023-10-07 19:49:21 +00:00
|
|
|
{ callPackage
|
2023-08-11 19:24:36 +00:00
|
|
|
, enableJavaFX ? false
|
2023-10-07 19:49:21 +00:00
|
|
|
, ...
|
|
|
|
}@args:
|
|
|
|
|
|
|
|
callPackage ./common.nix ({
|
2023-10-07 22:27:47 +00:00
|
|
|
# Details from https://www.azul.com/downloads/?version=java-20-sts&package=jdk
|
2023-05-16 07:39:17 +00:00
|
|
|
# Note that the latest build may differ by platform
|
2023-10-07 22:15:29 +00:00
|
|
|
dists = {
|
2023-05-16 07:39:17 +00:00
|
|
|
x86_64-darwin = {
|
2023-08-05 00:02:08 +00:00
|
|
|
zuluVersion = "20.32.11";
|
|
|
|
jdkVersion = "20.0.2";
|
2023-08-11 19:24:36 +00:00
|
|
|
hash =
|
|
|
|
if enableJavaFX then "sha256-hyxQAivZAXtqMebe30L+EYa7p+TdSdKNYj7Rl/ZwRNQ="
|
|
|
|
else "sha256-Ev9KG6DvuBnsZrOguLsO1KQzudHCBcJNwKh45Inpnfo=";
|
2023-05-16 07:39:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
aarch64-darwin = {
|
2023-08-05 00:02:08 +00:00
|
|
|
zuluVersion = "20.32.11";
|
|
|
|
jdkVersion = "20.0.2";
|
2023-08-11 19:24:36 +00:00
|
|
|
hash =
|
|
|
|
if enableJavaFX then "sha256-iPQzZS4CwaoqT8cSzg4kWCT1OyGBSJLq+NETcbucLo4="
|
|
|
|
else "sha256-15uNZ6uMfSASV3QU2q2oA/jBk2PCHOfSjn1GY7/7qIY=";
|
2023-05-16 07:39:17 +00:00
|
|
|
};
|
2023-10-07 22:15:29 +00:00
|
|
|
};
|
2023-10-07 19:49:21 +00:00
|
|
|
} // builtins.removeAttrs args [ "callPackage" ])
|