mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-17 21:11:34 +03:00
6cd2985bc1
The splash is now an application that should be started and forked from. Once started, it will listen for messages on a ZeroMQ socket reporting progress. The current protocol is extremely simple, reporting (optional) label, and reporting a progress amount. Additionally, it responds to a string commant ("quit") to quit as needed.
27 lines
510 B
Nix
27 lines
510 B
Nix
{ stdenv
|
|
, lib
|
|
, callPackage
|
|
, mrbgems
|
|
, mruby
|
|
, mobile-nixos
|
|
}:
|
|
|
|
let
|
|
script-loader = mobile-nixos.stage-1.script-loader.override({
|
|
mrbgems = mrbgems // {
|
|
mruby-lvgui = callPackage ../../overlay/mruby-builder/mrbgems/mruby-lvgui {
|
|
withSimulator = true;
|
|
};
|
|
};
|
|
});
|
|
applet = callPackage ./. {};
|
|
in
|
|
(script-loader.wrap {
|
|
name = "simulator";
|
|
inherit applet;
|
|
}).overrideAttrs(old: rec {
|
|
pname = "boot-splash-simulator";
|
|
version = "0.0.1";
|
|
name = "${pname}-${version}";
|
|
})
|