1
0
Fork 1
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:
Nikolay Korotkiy 2024-09-07 12:28:11 +04:00
parent 729d6c49e8
commit 75d4a4b0fb
No known key found for this signature in database
GPG key ID: D1DE6D7F693663A5

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) \