jre_minimal: fix cross build

This commit is contained in:
FliegendeWurst
2025-04-13 11:26:22 +02:00
parent cf3cdb59f8
commit 3aa9f671e2
2 changed files with 8 additions and 1 deletions
@@ -1,6 +1,7 @@
{
stdenv,
jdk,
jdkOnBuild, # must provide jlink
lib,
callPackage,
modules ? [ "java.base" ],
@@ -11,7 +12,9 @@ let
pname = "${jdk.pname}-minimal-jre";
version = jdk.version;
nativeBuildInputs = [ jdkOnBuild ];
buildInputs = [ jdk ];
strictDeps = true;
dontUnpack = true;
+5 -1
View File
@@ -6613,11 +6613,15 @@ with pkgs;
jre17_minimal = callPackage ../development/compilers/openjdk/jre.nix {
jdk = jdk17;
jdkOnBuild = buildPackages.jdk17;
};
jre21_minimal = callPackage ../development/compilers/openjdk/jre.nix {
jdk = jdk21;
jdkOnBuild = buildPackages.jdk21;
};
jre_minimal = callPackage ../development/compilers/openjdk/jre.nix {
jdkOnBuild = buildPackages.jdk;
};
jre_minimal = callPackage ../development/compilers/openjdk/jre.nix { };
openjdk = jdk;
openjdk_headless = jdk_headless;