diff options
author | Emery Hemingway <emery@dmz.rs> | 2024-08-29T07·31+0300 |
---|---|---|
committer | emery <emery@dmz.rs> | 2024-09-03T12·51+0000 |
commit | 0f519a6f13138f9b7108361bd792d88e7cb39ca4 (patch) | |
tree | 0bfc2852e107970f06a9e25bc250134fa5d324f0 | |
parent | a115238f1bdc197a3d7d7827a026e490040d526f (diff) |
feat(tools/eaglemode/commands): add Sam/Acme plumb command r/8640
Change-Id: I80443e88180e87c7f7b7c8ae322c5076d1ce0a02 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12422 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
-rw-r--r-- | tools/eaglemode/commands/B.nix | 23 | ||||
-rw-r--r-- | tools/eaglemode/commands/plan9.tga | bin | 0 -> 5926 bytes | |||
-rw-r--r-- | users/emery/eaglemode/default.nix | 11 |
3 files changed, 34 insertions, 0 deletions
diff --git a/tools/eaglemode/commands/B.nix b/tools/eaglemode/commands/B.nix new file mode 100644 index 000000000000..bca3d3a87a87 --- /dev/null +++ b/tools/eaglemode/commands/B.nix @@ -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); + ''; +} diff --git a/tools/eaglemode/commands/plan9.tga b/tools/eaglemode/commands/plan9.tga new file mode 100644 index 000000000000..55d002221a9b --- /dev/null +++ b/tools/eaglemode/commands/plan9.tga Binary files differdiff --git a/users/emery/eaglemode/default.nix b/users/emery/eaglemode/default.nix new file mode 100644 index 000000000000..c4b51a4e7c0c --- /dev/null +++ b/users/emery/eaglemode/default.nix @@ -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; +} |