2020-02-29 06:00:21 +03:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
boot-gui = ../boot/gui;
|
2020-02-29 23:36:36 +03:00
|
|
|
key-held = pkgs.runCommand "key-held.mrb" {} ''
|
|
|
|
${pkgs.buildPackages.mruby}/bin/mrbc -o $out ${../boot/applets}/key-held.rb
|
|
|
|
'';
|
2020-02-29 06:00:21 +03:00
|
|
|
boot-selection = pkgs.runCommand "boot-selection.mrb" {} ''
|
|
|
|
${pkgs.buildPackages.mruby}/bin/mrbc -o $out ${boot-gui}/lib/*.rb ${boot-gui}/main.rb
|
|
|
|
'';
|
|
|
|
in
|
|
|
|
{
|
|
|
|
mobile.boot.stage-1.contents = with pkgs; [
|
|
|
|
{
|
|
|
|
object = (builtins.path { path = ../artwork/logo/logo.white.svg; });
|
|
|
|
symlink = "/etc/logo.svg";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
object = boot-selection;
|
|
|
|
symlink = "/applets/boot-selection.mrb";
|
|
|
|
}
|
2020-02-29 23:36:36 +03:00
|
|
|
{
|
|
|
|
object = key-held;
|
|
|
|
symlink = "/applets/key-held.mrb";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
mobile.boot.stage-1.extraUtils = with pkgs; [
|
|
|
|
# Used for `key-held.mrb`.
|
|
|
|
{ package = pkgsStatic.evtest; }
|
2020-02-29 06:00:21 +03:00
|
|
|
];
|
|
|
|
}
|