mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
gum: fix cross compilation
This commit is contained in:
parent
729d6c49e8
commit
75d4a4b0fb
|
@ -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) \
|
||||
|
|
Loading…
Reference in a new issue