bulk versions.json

This commit is contained in:
mjallen18
2026-01-21 12:53:13 -06:00
parent 7cc4e8c99e
commit 2b9908e760
52 changed files with 1033 additions and 335 deletions

View File

@@ -2,19 +2,23 @@
lib,
stdenvNoCC,
fetchFromGitHub,
pkgs,
}:
let
inherit (lib.trivial) importJSON;
versionSpec = importJSON ./version.json;
versioning = import ../../../lib/versioning.nix { inherit lib pkgs; };
selected = versioning.selectVariant versionSpec null null;
vars = selected.variables or {};
sources = versioning.mkAllSources selected;
in
stdenvNoCC.mkDerivation rec {
# NOTE: this should be updated with linux_rpi
pname = "raspberrypi-dtoverlays";
version = "stable_20250916";
version = vars.version;
src = fetchFromGitHub {
owner = "raspberrypi";
repo = "linux";
tag = version;
hash = "sha256-HG8Oc04V2t54l0SOn4gKmNJWQUrZfjWusgKcWvx74H0==";
};
src = sources.linux;
installPhase = ''
mkdir -p $out/dtbs/raspberrypi-overlays/

View File

@@ -0,0 +1,15 @@
{
"schemaVersion": 1,
"variables": {
"version": "stable_20250916"
},
"sources": {
"linux": {
"fetcher": "github",
"owner": "raspberrypi",
"repo": "linux",
"tag": "${version}",
"hash": "sha256-HG8Oc04V2t54l0SOn4gKmNJWQUrZfjWusgKcWvx74H0=="
}
}
}