Files
nix-config/modules/nixos/hardware/raspberry-pi/uboot-builder.nix
mjallen18 b216fe5215 bruh
2025-12-30 14:28:48 -06:00

23 lines
398 B
Nix

{ pkgs
, ubootPackage
, ubootBinName ? "u-boot.bin"
, extlinuxConfBuilder
, firmwareBuilder
}:
pkgs.replaceVarsWith {
src = ./uboot-builder.sh;
isExecutable = true;
replacements = {
inherit (pkgs) bash;
path = pkgs.lib.makeBinPath [
pkgs.coreutils
];
uboot = ubootPackage;
inherit ubootBinName;
inherit extlinuxConfBuilder;
inherit firmwareBuilder;
};
}