Files
nix-config/modules/nixos/hardware/raspberry-pi/uboot-builder.nix
mjallen18 56154fe941 check
2026-01-02 20:30:05 -06:00

25 lines
406 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;
};
}