doc: don't recommend using emulator for completions (#406310)
This commit is contained in:
@@ -99,17 +99,12 @@ failure. To prevent this, guard the completion generation commands.
|
|||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
postInstall = lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) (
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
let
|
|
||||||
emulator = stdenv.hostPlatform.emulator buildPackages;
|
|
||||||
in
|
|
||||||
''
|
|
||||||
# using named fd
|
# using named fd
|
||||||
installShellCompletion --cmd foobar \
|
installShellCompletion --cmd foobar \
|
||||||
--bash <(${emulator} $out/bin/foobar --bash-completion) \
|
--bash <($out/bin/foobar --bash-completion) \
|
||||||
--fish <(${emulator} $out/bin/foobar --fish-completion) \
|
--fish <($out/bin/foobar --fish-completion) \
|
||||||
--zsh <(${emulator} $out/bin/foobar --zsh-completion)
|
--zsh <($out/bin/foobar --zsh-completion)
|
||||||
''
|
'';
|
||||||
);
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user