2022-10-21 18:38:19 +00:00
|
|
|
{ stdenv, lib, callPackage }:
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
let
|
2022-10-21 18:38:19 +00:00
|
|
|
variant = if stdenv.hostPlatform.isMusl then "alpine-linux" else "linux";
|
|
|
|
sources = (lib.importJSON ./sources.json).hotspot.${variant};
|
2022-09-30 11:47:45 +00:00
|
|
|
common = opts: callPackage (import ./jdk-linux-base.nix opts) {};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
jdk-8 = common { sourcePerArch = sources.jdk.openjdk8; };
|
|
|
|
jre-8 = common { sourcePerArch = sources.jre.openjdk8; };
|
|
|
|
jdk-11 = common { sourcePerArch = sources.jdk.openjdk11; };
|
|
|
|
jre-11 = common { sourcePerArch = sources.jre.openjdk11; };
|
|
|
|
jdk-16 = common { sourcePerArch = sources.jdk.openjdk16; };
|
2022-12-02 08:20:57 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
jdk-17 = common { sourcePerArch = sources.jdk.openjdk17; };
|
|
|
|
jre-17 = common { sourcePerArch = sources.jre.openjdk17; };
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
jdk-18 = common { sourcePerArch = sources.jdk.openjdk18; };
|
|
|
|
jre-18 = common { sourcePerArch = sources.jre.openjdk18; };
|
|
|
|
|
|
|
|
jdk-19 = common { sourcePerArch = sources.jdk.openjdk19; };
|
|
|
|
jre-19 = common { sourcePerArch = sources.jre.openjdk19; };
|
2022-09-30 11:47:45 +00:00
|
|
|
}
|