mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
27 lines
796 B
Nix
27 lines
796 B
Nix
{ callPackage
|
|
, enableJavaFX ? false
|
|
, ...
|
|
}@args:
|
|
|
|
callPackage ./common.nix ({
|
|
# Details from https://www.azul.com/downloads/?version=java-18-sts&package=jdk
|
|
# Note that the latest build may differ by platform
|
|
dists = {
|
|
x86_64-darwin = {
|
|
zuluVersion = "18.32.13";
|
|
jdkVersion = "18.0.2.1";
|
|
hash =
|
|
if enableJavaFX then "sha256-ZVZ1gbpJwxTduq2PPOCKqbSl+shq2NTFgqG++OXvFcg="
|
|
else "sha256-uHPcyOgxUdTgzmIVRp/awtwve9zSt+1TZNef7DUuoRg=";
|
|
};
|
|
|
|
aarch64-darwin = {
|
|
zuluVersion = "18.32.13";
|
|
jdkVersion = "18.0.2.1";
|
|
hash =
|
|
if enableJavaFX then "sha256-tNx0a1u9iamcN9VFOJ3eqDEA6C204dtIBJZvuAH2Vjk="
|
|
else "sha256-jAZDgxtWMq/74yKAxA69oOU0C9nXvKG5MjmZLsK04iM=";
|
|
};
|
|
};
|
|
} // builtins.removeAttrs args [ "callPackage" ])
|