mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 01:53:09 +09:00
git-town: fix cross build (#406782)
This commit is contained in:
commit
010ec20008
1 changed files with 11 additions and 8 deletions
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
|
@ -64,12 +65,14 @@ buildGoModule rec {
|
||||||
in
|
in
|
||||||
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall =
|
||||||
|
lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd git-town \
|
installShellCompletion --cmd git-town \
|
||||||
--bash <($out/bin/git-town completions bash) \
|
--bash <($out/bin/git-town completions bash) \
|
||||||
--fish <($out/bin/git-town completions fish) \
|
--fish <($out/bin/git-town completions fish) \
|
||||||
--zsh <($out/bin/git-town completions zsh)
|
--zsh <($out/bin/git-town completions zsh)
|
||||||
|
''
|
||||||
|
+ ''
|
||||||
wrapProgram $out/bin/git-town --prefix PATH : ${lib.makeBinPath [ git ]}
|
wrapProgram $out/bin/git-town --prefix PATH : ${lib.makeBinPath [ git ]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue