9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
26 lines
1 KiB
Nix
26 lines
1 KiB
Nix
{ stdenv, lib, callPackage }:
|
|
|
|
let
|
|
variant = if stdenv.hostPlatform.isMusl then "alpine-linux" else "linux";
|
|
sources = (lib.importJSON ./sources.json).hotspot.${variant};
|
|
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; };
|
|
|
|
jdk-17 = common { sourcePerArch = sources.jdk.openjdk17; };
|
|
jre-17 = common { sourcePerArch = sources.jre.openjdk17; };
|
|
|
|
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; };
|
|
|
|
jdk-20 = common { sourcePerArch = sources.jdk.openjdk20; };
|
|
jre-20 = common { sourcePerArch = sources.jre.openjdk20; };
|
|
}
|