1 import ./make-test-python.nix ({ pkgs, ... }: {
3 meta.maintainers = pkgs.starship.meta.maintainers;
12 settings.format = "<starship>";
16 environment.systemPackages = map
17 (shell: pkgs.writeScriptBin "expect-${shell}" ''
18 #!${pkgs.expect}/bin/expect -f
20 spawn env TERM=xterm ${shell} -i
25 send_user "\n${shell} failed to display Starship\n"
31 [ "bash" "fish" "zsh" ];
36 machine.wait_for_unit("default.target")
38 machine.succeed("expect-bash")
39 machine.succeed("expect-fish")
40 machine.succeed("expect-zsh")