Loading pkgs/applications/version-management/gh/default.nix +25 −14 Original line number Diff line number Diff line { lib, fetchFromGitHub, buildGoModule, installShellFiles, stdenv, testers, gh }: { lib, fetchFromGitHub, buildGoModule, installShellFiles, stdenv, testers, gh, }: buildGoModule rec { pname = "gh"; Loading @@ -21,17 +29,20 @@ buildGoModule rec { runHook postBuild ''; installPhase = '' installPhase = '' runHook preInstall install -Dm755 bin/gh -t $out/bin '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installManPage share/man/*/*.[1-9] installShellCompletion --cmd gh \ --bash <($out/bin/gh completion -s bash) \ --fish <($out/bin/gh completion -s fish) \ --zsh <($out/bin/gh completion -s zsh) '' + '' '' + '' runHook postInstall ''; Loading Loading
pkgs/applications/version-management/gh/default.nix +25 −14 Original line number Diff line number Diff line { lib, fetchFromGitHub, buildGoModule, installShellFiles, stdenv, testers, gh }: { lib, fetchFromGitHub, buildGoModule, installShellFiles, stdenv, testers, gh, }: buildGoModule rec { pname = "gh"; Loading @@ -21,17 +29,20 @@ buildGoModule rec { runHook postBuild ''; installPhase = '' installPhase = '' runHook preInstall install -Dm755 bin/gh -t $out/bin '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installManPage share/man/*/*.[1-9] installShellCompletion --cmd gh \ --bash <($out/bin/gh completion -s bash) \ --fish <($out/bin/gh completion -s fish) \ --zsh <($out/bin/gh completion -s zsh) '' + '' '' + '' runHook postInstall ''; Loading