Unverified Commit 07669145 authored by Daniel Nagy's avatar Daniel Nagy
Browse files

doggo: make completion generation platform-dependant

parent 179281ed
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) \