mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 11:03:37 +03:00
examples/hello: Use eval-with-configuration.nix
This commit is contained in:
parent
0ef6bd9d5d
commit
5b49dcf208
@ -1,22 +1,11 @@
|
||||
{ device ? null }:
|
||||
|
||||
let
|
||||
system-build = import ../../. {
|
||||
inherit device;
|
||||
configuration = [ { imports = [ ./configuration.nix ]; } ];
|
||||
};
|
||||
in
|
||||
system-build // {
|
||||
___readme-default = throw ''
|
||||
Cannot directly build for ${device}...
|
||||
{ device ? null, pkgs ? null }@args:
|
||||
|
||||
import ../../lib/eval-with-configuration.nix (args // {
|
||||
configuration = [ (import ./configuration.nix) ];
|
||||
additionalHelpInstructions = ''
|
||||
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. *
|
||||
*************************************************************************
|
||||
'';
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user