Skip to content

Commit

Permalink
add coreutils to device package scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaditya Watwe committed Mar 11, 2024
1 parent 6ae4ce1 commit d8f20a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions device-pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
, dtc
, l4tVersion
, pkgsAarch64
, coreutils
,
}:

Expand Down Expand Up @@ -123,6 +124,7 @@ let
# Generate a flash script using the built configuration options set in a NixOS configuration
flashScript = writeShellApplication {
name = "flash-${hostName}";
runtimeInputs = [ coreutils ];
text = (mkFlashScriptAuto { });
};

Expand All @@ -143,6 +145,7 @@ let
# on x86_64, and the machine in `config` should be aarch64-linux
rcmBoot = writeShellApplication {
name = "rcmboot-nixos";
runtimeInputs = [ coreutils ];
text = mkRcmBootScript {
# See nixpkgs nixos/modules/system/activatation/top-level.nix for standard usage of these paths
kernelPath = "${config.boot.kernelPackages.kernel}/${config.system.boot.loader.kernelFile}";
Expand Down Expand Up @@ -192,6 +195,7 @@ let
in
writeShellApplication {
name = "initrd-flash-${hostName}";
runtimeInputs = [ coreutils ];
text = ''
${mkRcmBootScript {
kernelPath = "${config.boot.kernelPackages.kernel}/Image";
Expand Down Expand Up @@ -278,6 +282,7 @@ let

fuseScript = writeShellApplication {
name = "fuse-${hostName}";
runtimeInputs = [ coreutils ];
text = import ./flash-script.nix {
inherit lib;
flash-tools = flash-tools-patched;
Expand Down

0 comments on commit d8f20a8

Please sign in to comment.