at master 760 B view raw
1{ 2 name = "fish"; 3 4 nodes.machine = 5 { pkgs, ... }: 6 7 { 8 programs.fish.enable = true; 9 environment.systemPackages = with pkgs; [ 10 coreutils 11 procps # kill collides with coreutils' to test https://github.com/NixOS/nixpkgs/issues/56432 12 ]; 13 14 # Avoid slow man cache build 15 documentation.man.enable = false; 16 }; 17 18 testScript = 19 #python 20 '' 21 start_all() 22 machine.wait_for_file("/etc/fish/generated_completions/coreutils.fish") 23 machine.wait_for_file("/etc/fish/generated_completions/kill.fish") 24 machine.succeed( 25 "fish -ic 'echo $fish_complete_path' | grep -q '/share/fish/completions /etc/fish/generated_completions /root/.cache/fish/generated_completions$'" 26 ) 27 ''; 28}