mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 19:23:01 +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.
23 lines
668 B
Nix
23 lines
668 B
Nix
{ device ? null }:
|
|
|
|
let
|
|
system-build = import ../../. {
|
|
inherit device;
|
|
configuration = [ { imports = [ ./configuration.nix ]; } ];
|
|
};
|
|
in
|
|
system-build // {
|
|
___readme-default = throw ''
|
|
Cannot directly build for ${device}...
|
|
|
|
You can build the `-A build.default` attribute to build the default output
|
|
for your device.
|
|
|
|
$ nix-build examples/hello --argstr device ${device} -A build.default
|
|
|
|
*************************************************************************
|
|
* Please also read your device's documentation for further usage notes. *
|
|
*************************************************************************
|
|
'';
|
|
}
|