1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 13:10:29 +03:00
mobile-nixos/boot/recovery-menu/default.nix
Samuel Dionne-Riel fb4984cb90 s/boot-gui/boot-recovery-menu/g
The applet is specifically written to show what we call the "recovery
menu". Yes, it's also the boot selection, but it will get confusing with
the upcoming boot tracking splash UI that's upcoming.
2020-10-27 15:23:40 -04:00

21 lines
464 B
Nix

{ runCommand
, lib
, mruby
}:
# mkDerivation will append something like -aarch64-unknown-linux-gnu to the
# derivation name with cross, which will break the mruby code loading.
# Since we don't need anything from mkDerivation, really, let's use runCommand.
runCommand "boot-recovery-menu.mrb" {
src = lib.cleanSource ./.;
nativeBuildInputs = [
mruby
];
} ''
mrbc \
-o $out \
$(find $src/lib -type f -name '*.rb' | sort) \
$src/main.rb
''