az-pim-cli: don't use emulator for shell completions
This commit is contained in:
parent
c0ac87829f
commit
a0b8a9def8
@ -4,7 +4,6 @@
|
|||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
stdenv,
|
stdenv,
|
||||||
buildPackages,
|
|
||||||
nix-update-script,
|
nix-update-script,
|
||||||
testers,
|
testers,
|
||||||
}:
|
}:
|
||||||
@ -37,17 +36,12 @@ buildGoModule (finalAttrs: {
|
|||||||
"-X github.com/netr0m/az-pim-cli/cmd.version=v${finalAttrs.version}"
|
"-X github.com/netr0m/az-pim-cli/cmd.version=v${finalAttrs.version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) (
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
let
|
|
||||||
emulator = stdenv.hostPlatform.emulator buildPackages;
|
|
||||||
in
|
|
||||||
''
|
|
||||||
installShellCompletion --cmd az-pim-cli \
|
installShellCompletion --cmd az-pim-cli \
|
||||||
--bash <(${emulator} $out/bin/az-pim-cli completion bash) \
|
--bash <($out/bin/az-pim-cli completion bash) \
|
||||||
--fish <(${emulator} $out/bin/az-pim-cli completion fish) \
|
--fish <($out/bin/az-pim-cli completion fish) \
|
||||||
--zsh <(${emulator} $out/bin/az-pim-cli completion zsh)
|
--zsh <($out/bin/az-pim-cli completion zsh)
|
||||||
''
|
'';
|
||||||
);
|
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
updateScript = nix-update-script { };
|
updateScript = nix-update-script { };
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user