c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
16 lines
680 B
Nix
16 lines
680 B
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; };
|
|
}
|