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,22 @@
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-firmware";
version = "1.20250915";
version = vars.version;
src = fetchFromGitHub {
owner = "raspberrypi";
repo = "firmware";
rev = version;
hash = "sha256-DqVgsPhppxCsZ+H6S7XY5bBoRhOgPipKibDwikqBk08=";
};
src = sources.firmware;
installPhase = ''
mkdir -p $out/share/raspberrypi/

View File

@@ -0,0 +1,15 @@
{
"schemaVersion": 1,
"variables": {
"version": "1.20250915"
},
"sources": {
"firmware": {
"fetcher": "github",
"owner": "raspberrypi",
"repo": "firmware",
"tag": "${version}",
"hash": "sha256-DqVgsPhppxCsZ+H6S7XY5bBoRhOgPipKibDwikqBk08="
}
}
}