2023-10-09 19:29:22 +00:00
|
|
|
{ callPackage
|
|
|
|
, enableJavaFX ? false
|
|
|
|
, ...
|
|
|
|
}@args:
|
|
|
|
|
|
|
|
callPackage ./common.nix ({
|
|
|
|
# Details from https://www.azul.com/downloads/?version=java-11-lts&package=jdk
|
|
|
|
# Note that the latest build may differ by platform
|
|
|
|
dists = {
|
|
|
|
x86_64-linux = {
|
2024-02-29 20:09:43 +00:00
|
|
|
zuluVersion = "11.70.15";
|
|
|
|
jdkVersion = "11.0.22";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash =
|
2024-02-29 20:09:43 +00:00
|
|
|
if enableJavaFX then "sha256-FxTHgng7/oDY3n3qy8j1ztbpBQeoGcEBJbEXqaE4Zr4="
|
|
|
|
else "sha256-V41ZRrJtkle3joKhwoID5bvWkN5I4gFjmbEnTD7no8U=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
aarch64-linux = {
|
2024-02-29 20:09:43 +00:00
|
|
|
zuluVersion = "11.70.15";
|
|
|
|
jdkVersion = "11.0.22";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash =
|
|
|
|
if enableJavaFX then throw "JavaFX is not available for aarch64-linux"
|
2024-02-29 20:09:43 +00:00
|
|
|
else "sha256-u6XWMXAArUhMMb6j3KFOhkIxpVYR1oYLF0Wde7/tI0k=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
x86_64-darwin = {
|
2024-02-29 20:09:43 +00:00
|
|
|
zuluVersion = "11.70.15";
|
|
|
|
jdkVersion = "11.0.22";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash =
|
2024-02-29 20:09:43 +00:00
|
|
|
if enableJavaFX then "sha256-JkJZwk+D28wHWqwUoLo7WW5ypwTrT5biSoP+70YI3eQ="
|
|
|
|
else "sha256-ca/ttkPe2tbcm1ruguDgPsxKWbEdKcICsKCDXaup9N4=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
aarch64-darwin = {
|
2024-02-29 20:09:43 +00:00
|
|
|
zuluVersion = "11.70.15";
|
|
|
|
jdkVersion = "11.0.22";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash =
|
2024-02-29 20:09:43 +00:00
|
|
|
if enableJavaFX then "sha256-bAgH4lCxPvvFOeif5gI2aoLt1aC4EXPzb2YmiS9bQsU="
|
|
|
|
else "sha256-PWQOF+P9djZarjAJaE3I0tuI1E4H/9584VN04BMzmvM=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
} // builtins.removeAttrs args [ "callPackage" ])
|