Merge pull request #186436 from NickCao/velero-cross
velero: disable shell completion generation when cross compiling
This commit is contained in:
commit
46d336b612
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
{ lib, stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "velero";
|
||||
|
@ -31,7 +31,7 @@ buildGoModule rec {
|
|||
'';
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
postInstall = ''
|
||||
postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
|
||||
$out/bin/velero completion bash > velero.bash
|
||||
$out/bin/velero completion zsh > velero.zsh
|
||||
installShellCompletion velero.{bash,zsh}
|
||||
|
|
Loading…
Reference in a new issue