atuin: only generate completions if program can be executed

https://github.com/NixOS/nixpkgs/pull/289517 will break cross otherwise.
This commit is contained in:
Stefan Frijters
2024-06-03 00:24:03 +02:00
parent 09d6b09a52
commit b7dd52f329
+1 -1
View File
@@ -41,7 +41,7 @@ rustPlatform.buildRustPackage rec {
darwin.apple_sdk_11_0.frameworks.SystemConfiguration
];
postInstall = ''
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd atuin \
--bash <($out/bin/atuin gen-completions -s bash) \
--fish <($out/bin/atuin gen-completions -s fish) \