gum: fix cross build

This commit is contained in:
florianvazelle
2025-02-01 14:10:28 +01:00
parent 7ad7702fa8
commit cab3383aa4
+8 -11
View File
@@ -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";