2024-05-13 21:24:10 +00:00
|
|
|
{ callPackage, enableJavaFX ? false, ... }@args:
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
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 = {
|
|
|
|
zuluVersion = "11.70.15";
|
|
|
|
jdkVersion = "11.0.22";
|
2024-05-13 21:24:10 +00:00
|
|
|
hash = if enableJavaFX then
|
|
|
|
"sha256-FxTHgng7/oDY3n3qy8j1ztbpBQeoGcEBJbEXqaE4Zr4="
|
|
|
|
else
|
|
|
|
"sha256-V41ZRrJtkle3joKhwoID5bvWkN5I4gFjmbEnTD7no8U=";
|
2024-05-02 00:46:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
aarch64-linux = {
|
|
|
|
zuluVersion = "11.70.15";
|
|
|
|
jdkVersion = "11.0.22";
|
2024-05-13 21:24:10 +00:00
|
|
|
hash = if enableJavaFX then
|
|
|
|
throw "JavaFX is not available for aarch64-linux"
|
|
|
|
else
|
|
|
|
"sha256-u6XWMXAArUhMMb6j3KFOhkIxpVYR1oYLF0Wde7/tI0k=";
|
2024-05-02 00:46:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
x86_64-darwin = {
|
|
|
|
zuluVersion = "11.70.15";
|
|
|
|
jdkVersion = "11.0.22";
|
2024-05-13 21:24:10 +00:00
|
|
|
hash = if enableJavaFX then
|
|
|
|
"sha256-JkJZwk+D28wHWqwUoLo7WW5ypwTrT5biSoP+70YI3eQ="
|
|
|
|
else
|
|
|
|
"sha256-ca/ttkPe2tbcm1ruguDgPsxKWbEdKcICsKCDXaup9N4=";
|
2024-05-02 00:46:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
aarch64-darwin = {
|
|
|
|
zuluVersion = "11.70.15";
|
|
|
|
jdkVersion = "11.0.22";
|
2024-05-13 21:24:10 +00:00
|
|
|
hash = if enableJavaFX then
|
|
|
|
"sha256-bAgH4lCxPvvFOeif5gI2aoLt1aC4EXPzb2YmiS9bQsU="
|
|
|
|
else
|
|
|
|
"sha256-PWQOF+P9djZarjAJaE3I0tuI1E4H/9584VN04BMzmvM=";
|
2024-05-02 00:46:19 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
} // builtins.removeAttrs args [ "callPackage" ])
|