fly: use stdenv.buildPlatform.canExecute
This commit is contained in:
parent
7ad22ae49d
commit
2b06dfa6a1
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd fly \
|
||||
--bash <($out/bin/fly completion --shell bash) \
|
||||
--fish <($out/bin/fly completion --shell fish) \
|
||||
|
|
Loading…
Reference in a new issue