core/pkgs/by-name/ja/java/zulu/22.nix

44 lines
1.3 KiB
Nix
Raw Normal View History

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-22-lts&package=jdk
# Note that the latest build may differ by platform
dists = {
x86_64-linux = {
zuluVersion = "22.28.91";
jdkVersion = "22.0.0";
2024-05-13 21:24:10 +00:00
hash = if enableJavaFX then
"sha256-HvMiODsz+puu1xtxG2RRXH/PWCk91PGNZ7UcOd9orqQ="
else
"sha256-HvMiODsz+puu1xtxG2RRXH/PWCk91PGNZ7UcOd9orqQ=";
2024-05-02 00:46:19 +00:00
};
aarch64-linux = {
zuluVersion = "22.28.91";
jdkVersion = "22.0.0";
2024-05-13 21:24:10 +00:00
hash = if enableJavaFX then
throw "JavaFX is not available for aarch64-linux"
else
"sha256-3RLNNEbMk5wAZsQmbQj/jpx9iTL/yr9N3wL4t7m6c+s=";
2024-05-02 00:46:19 +00:00
};
x86_64-darwin = {
zuluVersion = "22.28.91";
jdkVersion = "22.0.0";
2024-05-13 21:24:10 +00:00
hash = if enableJavaFX then
"sha256-Y6PSNQjHRXukwux2sVbvpTIqT+Cg+KeG1C0iSEwyKZw="
else
"sha256-Y6PSNQjHRXukwux2sVbvpTIqT+Cg+KeG1C0iSEwyKZw=";
2024-05-02 00:46:19 +00:00
};
aarch64-darwin = {
zuluVersion = "22.28.91";
jdkVersion = "22.0.0";
2024-05-13 21:24:10 +00:00
hash = if enableJavaFX then
"sha256-o0VkWB4+PzBmNNWy+FZlyjTgukBTe6owfydb3YNfEE0="
else
"sha256-o0VkWB4+PzBmNNWy+FZlyjTgukBTe6owfydb3YNfEE0=";
2024-05-02 00:46:19 +00:00
};
};
} // builtins.removeAttrs args [ "callPackage" ])