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
@@ -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) \