This commit is contained in:
mjallen18
2026-01-21 21:41:01 -06:00
parent a336b0cf60
commit 94c3d6d6ff
20 changed files with 61 additions and 59 deletions

View File

@@ -1,21 +1,21 @@
{
stdenv,
fetchFromGitHub,
lib,
pkgs,
namespace,
MODEL ? "5",
DEBUG ? "0",
TFA_FLAGS ? "",
}:
let
inherit (lib.trivial) importJSON;
inherit (lib.${namespace}) versioning;
versionSpec = importJSON ./version.json;
versioning = import ../../lib/versioning.nix { inherit lib pkgs; };
selected = versioning.selectVariant versionSpec null null;
sources = versioning.mkAllSources selected;
fw = selected.sources.fw;
in
stdenv.mkDerivation rec {
stdenv.mkDerivation {
pname = "arm-trusted-firmware";
version = if fw ? tag then fw.tag else fw.rev;