nixpkgs-openjdk-updater.openjdkSource: enforce source.json schema

This commit is contained in:
Emily 2024-10-24 20:54:37 +01:00
parent f95c2f68da
commit 1b0dadd102

View File

@ -43,11 +43,17 @@ python3Packages.buildPythonApplication {
featureVersionPrefix,
}:
let
# TODO: Tighten up after update scripts are run.
src = fetchFromGitHub (lib.importJSON sourceFile);
sourceInfo = lib.importJSON sourceFile;
in
{
inherit src;
src = fetchFromGitHub {
inherit (sourceInfo)
owner
repo
rev
hash
;
};
updateScript = {
command = [
@ -57,10 +63,10 @@ python3Packages.buildPythonApplication {
sourceFile
"--owner"
src.owner
sourceInfo.owner
"--repo"
src.repo
sourceInfo.repo
"--feature-version-prefix"
featureVersionPrefix