diff options
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/profpatsch/default.nix | 2 | ||||
-rw-r--r-- | pkgs/profpatsch/execline/e.nix | 23 |
2 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/profpatsch/default.nix b/pkgs/profpatsch/default.nix index 41c14f37..5db44681 100644 --- a/pkgs/profpatsch/default.nix +++ b/pkgs/profpatsch/default.nix @@ -146,6 +146,8 @@ in rec { writeExecline writeExeclineBin; inherit (import ./execline/runblock.nix { inherit pkgs; }) runblock; + inherit (import ./execline/e.nix { inherit pkgs writeExecline getBins; }) + e; inherit getBins; diff --git a/pkgs/profpatsch/execline/e.nix b/pkgs/profpatsch/execline/e.nix new file mode 100644 index 00000000..f5e44b66 --- /dev/null +++ b/pkgs/profpatsch/execline/e.nix @@ -0,0 +1,23 @@ +{ writeExecline, getBins, pkgs }: +let + + bins = getBins pkgs.rlwrap [ "rlwrap" ] + // getBins pkgs.s6-portable-utils [ { use = "s6-cat"; as = "cat"; } ] + // getBins pkgs.execline [ "execlineb" ]; + + # minimal execline shell + e = writeExecline "e" {} [ + "pipeline" [ + bins.rlwrap + "--substitute-prompt" "e> " + "--remember" + "--quote-characters" "\"" + "--complete-filenames" + bins.cat + ] + "forstdin" "cmd" + "importas" "cmd" "cmd" + bins.execlineb "-Pc" "$cmd" + ]; + +in { inherit e; } |