1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-14 18:21:41 +03:00
mobile-nixos/boot/error/default.nix
2021-07-19 15:50:06 -04:00

22 lines
508 B
Nix

{ lib, runCommandNoCC, mobile-nixos }:
let
assets = runCommandNoCC "boot-error-assets" {} ''
mkdir -p $out
cp ${../../artwork/sad.svg} $out/sad.svg
'';
in
mobile-nixos.mkLVGUIApp {
name = "boot-error.mrb";
executablePath = "libexec/boot-error.mrb";
src = lib.cleanSource ./.;
rubyFiles = [
"${../lib}/hal/reboot_modes.rb"
"${../lib}/init/configuration.rb"
"$(find ./lib -type f -name '*.rb' | sort)"
"main.rb"
];
inherit assets;
assetsPath = "boot-error/assets";
}