2023-10-07 19:49:21 +00:00
|
|
|
{ callPackage
|
2021-11-24 16:45:06 +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-16-sts&package=jdk
|
2021-05-27 08:18:42 +00:00
|
|
|
# Note that the latest build may differ by platform
|
2023-10-07 22:15:29 +00:00
|
|
|
dists = {
|
2021-05-27 08:18:42 +00:00
|
|
|
x86_64-darwin = {
|
2023-08-05 00:02:08 +00:00
|
|
|
zuluVersion = "16.32.15";
|
|
|
|
jdkVersion = "16.0.2";
|
|
|
|
hash =
|
|
|
|
if enableJavaFX then "sha256-6URaSBNHQWLauO//kCuKXb4Z7AqyshWnoeJEyVRKgaY="
|
|
|
|
else "sha256-NXgBj/KixTknaCYbo3B+rOo11NImH5CDUIU0LhTCtMo=";
|
2021-05-27 08:18:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
aarch64-darwin = {
|
2023-08-05 00:02:08 +00:00
|
|
|
zuluVersion = "16.32.15";
|
|
|
|
jdkVersion = "16.0.2";
|
|
|
|
hash =
|
|
|
|
if enableJavaFX then "sha256-QuyhIAxUY3Vv1adGihW+LIsXtpDX2taCmFsMFj9o5vs="
|
|
|
|
else "sha256-3bUfDcLLyahLeURFAgLAVapBZHvqtam8GHbWTA6MQog=";
|
2021-05-27 08:18:42 +00:00
|
|
|
};
|
2023-10-07 22:15:29 +00:00
|
|
|
};
|
2023-10-07 19:49:21 +00:00
|
|
|
} // builtins.removeAttrs args [ "callPackage" ])
|