gum: fix cross compilation

This commit is contained in:
Nikolay Korotkiy
2024-09-07 12:28:11 +04:00
parent 729d6c49e8
commit 75d4a4b0fb
+2 -1
View File
@@ -1,4 +1,4 @@
{ lib, buildGoModule, installShellFiles, fetchFromGitHub }:
{ lib, stdenv, buildGoModule, installShellFiles, fetchFromGitHub }:
buildGoModule rec {
pname = "gum";
@@ -22,6 +22,7 @@ buildGoModule rec {
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) \