mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 19:23:01 +03:00
examples/target-disk-mode: Rename to target disk mode
This commit is contained in:
parent
c3ca0d0b3c
commit
90c39ef613
@ -1,5 +1,5 @@
|
|||||||
[JumpDrive](https://github.com/dreemurrs-embedded/Jumpdrive), but with Mobile NixOS
|
Target Disk Mode
|
||||||
===================================================================================
|
================
|
||||||
|
|
||||||
What's this?
|
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
|
This is a system that allows you to present the internal storage of a device
|
||||||
over the USB connection using Linux USB gadget mode.
|
over the USB connection using Linux USB gadget mode.
|
||||||
|
|
||||||
|
|
||||||
* * *
|
* * *
|
||||||
|
|
||||||
With that said, while the project differs enough in implementation, I want
|
With that said, while the project differs enough in implementation, I want
|
@ -17,7 +17,7 @@ let
|
|||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "jumpdrive-gui.mrb";
|
name = "tdm-gui.mrb";
|
||||||
|
|
||||||
src = lib.cleanSource ./.;
|
src = lib.cleanSource ./.;
|
||||||
|
|
||||||
@ -37,6 +37,6 @@ stdenv.mkDerivation {
|
|||||||
mkdir -p $out/libexec/
|
mkdir -p $out/libexec/
|
||||||
mv -v app.mrb $out/libexec/
|
mv -v app.mrb $out/libexec/
|
||||||
|
|
||||||
mkdir -p $out/share/jumpdrive-gui
|
mkdir -p $out/share/tdm-gui
|
||||||
'';
|
'';
|
||||||
}
|
}
|
@ -24,7 +24,7 @@ in
|
|||||||
PATH = "${input-utils}/bin:$PATH";
|
PATH = "${input-utils}/bin:$PATH";
|
||||||
};
|
};
|
||||||
}).overrideAttrs(old: rec {
|
}).overrideAttrs(old: rec {
|
||||||
pname = "jumpdrive-gui-simulator";
|
pname = "tdm-gui-simulator";
|
||||||
version = "0.0.1";
|
version = "0.0.1";
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
})
|
})
|
@ -1,7 +1,7 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
jumpdrive-gui = "${pkgs.callPackage ./app {}}/libexec/app.mrb";
|
tdm-gui = "${pkgs.callPackage ./app {}}/libexec/app.mrb";
|
||||||
internalStorageConfigured =
|
internalStorageConfigured =
|
||||||
config.mobile.boot.stage-1.bootConfig ? storage &&
|
config.mobile.boot.stage-1.bootConfig ? storage &&
|
||||||
config.mobile.boot.stage-1.bootConfig.storage ? internal &&
|
config.mobile.boot.stage-1.bootConfig.storage ? internal &&
|
||||||
@ -42,7 +42,7 @@ in
|
|||||||
def run()
|
def run()
|
||||||
# FIXME: weirdness with /dev/inputs in QEMU.
|
# FIXME: weirdness with /dev/inputs in QEMU.
|
||||||
sleep(1)
|
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
|
# Exit the whole program at that point, if for any reason there's a
|
||||||
# failure. This shouldn't happen anyway.
|
# failure. This shouldn't happen anyway.
|
||||||
exit(1)
|
exit(1)
|
||||||
@ -65,8 +65,8 @@ in
|
|||||||
|
|
||||||
mobile.boot.stage-1.contents = with pkgs; [
|
mobile.boot.stage-1.contents = with pkgs; [
|
||||||
{
|
{
|
||||||
object = jumpdrive-gui;
|
object = tdm-gui;
|
||||||
symlink = "/applets/jumpdrive-gui.mrb";
|
symlink = "/applets/tdm-gui.mrb";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user