mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-18 13:31:36 +03:00
3d0552223d
The examples/hello system can be used by users that want to boot a minimal, and cross-compilable system. This is better than a "raw" build of the root of the Mobile NixOS repo since it provides a stage-2 application stating the system booted successfully.
27 lines
533 B
Nix
27 lines
533 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";
|
|
applet = "${applet}/libexec/app.mrb";
|
|
}).overrideAttrs(old: rec {
|
|
pname = "hello-gui-simulator";
|
|
version = "0.0.1";
|
|
name = "${pname}-${version}";
|
|
})
|