Unverified Commit 75d4a4b0 authored by Nikolay Korotkiy's avatar Nikolay Korotkiy
Browse files

gum: fix cross compilation

parent 729d6c49
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
{ 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) \