feat(tools/eaglemode/commands): add Sam/Acme plumb command
Change-Id: I80443e88180e87c7f7b7c8ae322c5076d1ce0a02 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12422 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
a115238f1b
commit
0f519a6f13
3 changed files with 34 additions and 0 deletions
23
tools/eaglemode/commands/B.nix
Normal file
23
tools/eaglemode/commands/B.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ depot, pkgs, ... }:
|
||||
|
||||
let
|
||||
em = depot.tools.eaglemode;
|
||||
in
|
||||
em.mkCommand {
|
||||
name = "9 B";
|
||||
hotkey = "Ctrl+E";
|
||||
icon = "${./plan9.tga}";
|
||||
|
||||
description = ''
|
||||
Plumb target to Sam or Acme
|
||||
'';
|
||||
|
||||
code = ''
|
||||
ErrorIfNotSingleTarget();
|
||||
|
||||
my @tgt=GetTgt();
|
||||
my $dir=$tgt[0];
|
||||
|
||||
ExecOrError('${pkgs.plan9port}/bin/9', 'B', $dir);
|
||||
'';
|
||||
}
|
BIN
tools/eaglemode/commands/plan9.tga
Normal file
BIN
tools/eaglemode/commands/plan9.tga
Normal file
Binary file not shown.
11
users/emery/eaglemode/default.nix
Normal file
11
users/emery/eaglemode/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Derivation for my fully configured Eagle Mode.
|
||||
{ depot, ... }:
|
||||
|
||||
let
|
||||
config = depot.tools.eaglemode.etcDir {
|
||||
extraPaths = [ depot.tools.eaglemode.commands.B ];
|
||||
};
|
||||
in
|
||||
depot.tools.eaglemode.withConfig {
|
||||
inherit config;
|
||||
}
|
Loading…
Reference in a new issue