fly: use stdenv.buildPlatform.canExecute

This commit is contained in:
Sandro 2022-09-27 11:18:00 +02:00 committed by GitHub
parent 7ad22ae49d
commit 2b06dfa6a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ buildGoModule rec {
doCheck = false; doCheck = false;
postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) '' postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd fly \ installShellCompletion --cmd fly \
--bash <($out/bin/fly completion --shell bash) \ --bash <($out/bin/fly completion --shell bash) \
--fish <($out/bin/fly completion --shell fish) \ --fish <($out/bin/fly completion --shell fish) \