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:
Emery Hemingway 2024-08-29 10:31:54 +03:00 committed by emery
parent a115238f1b
commit 0f519a6f13
3 changed files with 34 additions and 0 deletions

View 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);
'';
}

Binary file not shown.

View 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;
}