From 2b06dfa6a157de83a6592232eb8f5c28f5fd94ba Mon Sep 17 00:00:00 2001 From: Sandro Date: Tue, 27 Sep 2022 11:18:00 +0200 Subject: [PATCH] fly: use stdenv.buildPlatform.canExecute --- pkgs/development/tools/continuous-integration/fly/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/continuous-integration/fly/default.nix b/pkgs/development/tools/continuous-integration/fly/default.nix index 1ecd394268cd..7dd67dcebd33 100644 --- a/pkgs/development/tools/continuous-integration/fly/default.nix +++ b/pkgs/development/tools/continuous-integration/fly/default.nix @@ -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) \