bruh
This commit is contained in:
23
modules/nixos/hardware/raspberry-pi/uboot-builder.nix
Normal file
23
modules/nixos/hardware/raspberry-pi/uboot-builder.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user