From b80cf33ab1cee28beb47d1d53d318777072d44d4 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Mon, 26 May 2025 12:47:59 -0700 Subject: [PATCH] dependabot-cli: only run dependabot in order to get completions if supported --- pkgs/by-name/de/dependabot-cli/package.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/de/dependabot-cli/package.nix b/pkgs/by-name/de/dependabot-cli/package.nix index 04b67bf130d1..ccc11ad6b414 100644 --- a/pkgs/by-name/de/dependabot-cli/package.nix +++ b/pkgs/by-name/de/dependabot-cli/package.nix @@ -1,10 +1,11 @@ { + lib, + stdenv, buildGoModule, dependabot-cli, dockerTools, fetchFromGitHub, installShellFiles, - lib, makeWrapper, symlinkJoin, testers, @@ -49,7 +50,7 @@ buildGoModule { installShellFiles ]; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd dependabot \ --bash <($out/bin/dependabot completion bash) \ --fish <($out/bin/dependabot completion fish) \