nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 23 lines 870 B view raw
1{ 2 lib, 3 installShellFiles, 4 runCommandLocal, 5}: 6 7runCommandLocal "install-shell-files--install-completion-fifo" 8 { 9 nativeBuildInputs = [ installShellFiles ]; 10 meta.platforms = lib.platforms.all; 11 } 12 '' 13 installShellCompletion \ 14 --bash --name foo.bash <(echo foo) \ 15 --zsh --name _foo <(echo bar) \ 16 --fish --name foo.fish <(echo baz) \ 17 --nushell --name foo.nu <(echo bucks) 18 19 [[ $(<$out/share/bash-completion/completions/foo.bash) == foo ]] || { echo "foo.bash comparison failed"; exit 1; } 20 [[ $(<$out/share/zsh/site-functions/_foo) == bar ]] || { echo "_foo comparison failed"; exit 1; } 21 [[ $(<$out/share/fish/vendor_completions.d/foo.fish) == baz ]] || { echo "foo.fish comparison failed"; exit 1; } 22 [[ $(<$out/share/nushell/vendor/autoload/foo.nu) == bucks ]] || { echo "foo.nu comparison failed"; exit 1; } 23 ''