Revert "installShellFiles: add emulator doc for installShellCompletion"

This reverts commit 149a6e0a917d7704ba58614eda817f39e8245e7a.

See discussion in https://github.com/NixOS/nixpkgs/issues/308283 for
more details on why this isn't something we want to suggest.

authored by awwpotato and committed by winter.bsky.social 2cf25e71 496fcd4a

+7 -12
+7 -12
doc/hooks/installShellFiles.section.md
··· 99 ```nix 100 { 101 nativeBuildInputs = [ installShellFiles ]; 102 - postInstall = lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) ( 103 - let 104 - emulator = stdenv.hostPlatform.emulator buildPackages; 105 - in 106 - '' 107 - # using named fd 108 - installShellCompletion --cmd foobar \ 109 - --bash <(${emulator} $out/bin/foobar --bash-completion) \ 110 - --fish <(${emulator} $out/bin/foobar --fish-completion) \ 111 - --zsh <(${emulator} $out/bin/foobar --zsh-completion) 112 - '' 113 - ); 114 } 115 ```
··· 99 ```nix 100 { 101 nativeBuildInputs = [ installShellFiles ]; 102 + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 103 + # using named fd 104 + installShellCompletion --cmd foobar \ 105 + --bash <($out/bin/foobar --bash-completion) \ 106 + --fish <($out/bin/foobar --fish-completion) \ 107 + --zsh <($out/bin/foobar --zsh-completion) 108 + ''; 109 } 110 ```