1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-18 05:21:47 +03:00
mobile-nixos/examples/target-disk-mode/app/simulator.nix
2021-01-25 18:40:54 -05:00

27 lines
467 B
Nix

{ stdenv
, lib
, callPackage
, mrbgems
, mruby
, mobile-nixos
, input-utils
}:
let
script-loader = mobile-nixos.stage-1.script-loader.override({
withSimulator = true;
});
applet = callPackage ./. {};
in
(script-loader.wrap {
name = "simulator";
applet = "${applet}/libexec/app.mrb";
env = {
PATH = "${input-utils}/bin:$PATH";
};
}).overrideAttrs(old: rec {
pname = "tdm-gui-simulator";
version = "0.0.1";
name = "${pname}-${version}";
})