1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 11:03:37 +03:00

examples/target-disk-mode: Rename to target disk mode

This commit is contained in:
Samuel Dionne-Riel 2021-01-04 05:51:31 -05:00
parent c3ca0d0b3c
commit 90c39ef613
7 changed files with 9 additions and 10 deletions

View File

@ -1,5 +1,5 @@
[JumpDrive](https://github.com/dreemurrs-embedded/Jumpdrive), but with Mobile NixOS
===================================================================================
Target Disk Mode
================
What's this?
------------
@ -7,7 +7,6 @@ What's this?
This is a system that allows you to present the internal storage of a device
over the USB connection using Linux USB gadget mode.
* * *
With that said, while the project differs enough in implementation, I want

View File

@ -17,7 +17,7 @@ let
in
stdenv.mkDerivation {
name = "jumpdrive-gui.mrb";
name = "tdm-gui.mrb";
src = lib.cleanSource ./.;
@ -37,6 +37,6 @@ stdenv.mkDerivation {
mkdir -p $out/libexec/
mv -v app.mrb $out/libexec/
mkdir -p $out/share/jumpdrive-gui
mkdir -p $out/share/tdm-gui
'';
}

View File

@ -24,7 +24,7 @@ in
PATH = "${input-utils}/bin:$PATH";
};
}).overrideAttrs(old: rec {
pname = "jumpdrive-gui-simulator";
pname = "tdm-gui-simulator";
version = "0.0.1";
name = "${pname}-${version}";
})

View File

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }:
let
jumpdrive-gui = "${pkgs.callPackage ./app {}}/libexec/app.mrb";
tdm-gui = "${pkgs.callPackage ./app {}}/libexec/app.mrb";
internalStorageConfigured =
config.mobile.boot.stage-1.bootConfig ? storage &&
config.mobile.boot.stage-1.bootConfig.storage ? internal &&
@ -42,7 +42,7 @@ in
def run()
# FIXME: weirdness with /dev/inputs in QEMU.
sleep(1)
System.run(LOADER, "/applets/jumpdrive-gui.mrb")
System.run(LOADER, "/applets/tdm-gui.mrb")
# Exit the whole program at that point, if for any reason there's a
# failure. This shouldn't happen anyway.
exit(1)
@ -65,8 +65,8 @@ in
mobile.boot.stage-1.contents = with pkgs; [
{
object = jumpdrive-gui;
symlink = "/applets/jumpdrive-gui.mrb";
object = tdm-gui;
symlink = "/applets/tdm-gui.mrb";
}
];