bulk versions.json
This commit is contained in:
@@ -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/
|
||||
|
||||
15
packages/raspberrypi/raspberrypi-overlays/version.json
Normal file
15
packages/raspberrypi/raspberrypi-overlays/version.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"variables": {
|
||||
"version": "stable_20250916"
|
||||
},
|
||||
"sources": {
|
||||
"linux": {
|
||||
"fetcher": "github",
|
||||
"owner": "raspberrypi",
|
||||
"repo": "linux",
|
||||
"tag": "${version}",
|
||||
"hash": "sha256-HG8Oc04V2t54l0SOn4gKmNJWQUrZfjWusgKcWvx74H0=="
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user