From b7dd52f329fbf6af6319d87ee7488e6626eda2d4 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Mon, 3 Jun 2024 00:23:41 +0200 Subject: [PATCH] atuin: only generate completions if program can be executed https://github.com/NixOS/nixpkgs/pull/289517 will break cross otherwise. --- pkgs/by-name/at/atuin/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/at/atuin/package.nix b/pkgs/by-name/at/atuin/package.nix index 6b121258c10c6..283253ff00518 100644 --- a/pkgs/by-name/at/atuin/package.nix +++ b/pkgs/by-name/at/atuin/package.nix @@ -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) \