From cab3383aa45467c50ff7f92cbe16cdacddc6b0b6 Mon Sep 17 00:00:00 2001 From: florianvazelle Date: Sat, 1 Feb 2025 12:29:12 +0100 Subject: [PATCH] gum: fix cross build --- pkgs/by-name/gu/gum/package.nix | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/gu/gum/package.nix b/pkgs/by-name/gu/gum/package.nix index 31e1d6462a6d..72e95817a892 100644 --- a/pkgs/by-name/gu/gum/package.nix +++ b/pkgs/by-name/gu/gum/package.nix @@ -29,17 +29,14 @@ buildGoModule rec { "-X=main.Version=${version}" ]; - postInstall = - '' - $out/bin/gum man > gum.1 - installManPage gum.1 - '' - + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' - installShellCompletion --cmd gum \ - --bash <($out/bin/gum completion bash) \ - --fish <($out/bin/gum completion fish) \ - --zsh <($out/bin/gum completion zsh) - ''; + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' + $out/bin/gum man > gum.1 + installManPage gum.1 + installShellCompletion --cmd gum \ + --bash <($out/bin/gum completion bash) \ + --fish <($out/bin/gum completion fish) \ + --zsh <($out/bin/gum completion zsh) + ''; meta = with lib; { description = "Tasty Bubble Gum for your shell";