examples/target-disk-mode: Use eval-with-configuration.nix
-{ device }:
+{ device ? null, pkgs ? null }@args:
-let
- system-build = import ../../. {
- inherit device;
+import ../../lib/eval-with-configuration.nix (args // {
configuration = [ (import ./configuration.nix) ];
- };
-in
-{
- inherit (system-build) build;
-}
+ additionalHelpInstructions = ''
+ The build output to choose depends on the target.
+
+ Pinephone, other u-boot, and depthcharge devices:
+
+ $ nix-build examples/target-disk-mode --argstr device ${device} -A build.default
+
+ Android-based devices:
+
+ $ nix-build examples/target-disk-mode --argstr device ${device} -A build.android-bootimg
+
+ App "simulator":
+
+ $ nix-build examples/target-disk-mode --argstr device uefi-x86_64 -A build.app-simulator
+ '';
+})
