openjdk22: add version test (#340117)

This commit is contained in:
Doron Behar 2024-09-09 10:45:19 +00:00 committed by GitHub
commit d344cafc17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,6 +42,7 @@
, gtk3
, glib
, writeShellScript
, versionCheckHook
}:
let
@ -254,6 +255,13 @@ stdenv.mkDerivation (finalAttrs: {
pos = __curPos;
meta = import ./meta.nix lib featureVersion;
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgram = "${placeholder "out"}/bin/java";
doInstallCheck = true;
passthru = {
updateScript =
let