Unverified Commit f43881be authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

doggo: make completion generation platform-dependant (#389583)

parents fe1d5f63 07669145
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildGoModule,
  fetchFromGitHub,
  installShellFiles,
  nix-update-script,
  lib,
}:

buildGoModule rec {
@@ -26,7 +27,7 @@ buildGoModule rec {
    "-X main.buildVersion=v${version}"
  ];

  postInstall = ''
  postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
    installShellCompletion --cmd doggo \
      --bash <($out/bin/doggo completions bash) \
      --fish <($out/bin/doggo completions fish) \