1 { micro, expect, runCommand, writeScript, runtimeShell }:
3 let expect-script = writeScript "expect-script" ''
4 #!${expect}/bin/expect -f
15 expect "Save changes to file.txt before closing?"
20 runCommand "micro-test-expect"
22 nativeBuildInputs = [ micro expect ];
23 passthru = { inherit expect-script; };
25 # Micro really wants a writable $HOME for its config directory.
27 expect -f ${expect-script}
28 grep "Hello world!" file.txt