k6: use stdenv.buildPlatform.canExecute
This commit is contained in:
@@ -22,7 +22,7 @@ buildGoModule rec {
|
||||
$out/bin/k6 version | grep ${version} > /dev/null
|
||||
'';
|
||||
|
||||
postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd k6 \
|
||||
--bash <($out/bin/k6 completion bash) \
|
||||
--fish <($out/bin/k6 completion fish) \
|
||||
|
||||
Reference in New Issue
Block a user