From 1747de44166321d0af9ffe812b7b81bce557d256 Mon Sep 17 00:00:00 2001 From: Yureka Date: Fri, 19 Jul 2024 23:41:21 +0200 Subject: [PATCH] fd: disable shell completions for cross Signed-off-by: Yureka --- pkgs/tools/misc/fd/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/fd/default.nix b/pkgs/tools/misc/fd/default.nix index 2ec3106a0189..a058a7fc877c 100644 --- a/pkgs/tools/misc/fd/default.nix +++ b/pkgs/tools/misc/fd/default.nix @@ -1,4 +1,4 @@ -{ lib, rustPlatform, fetchFromGitHub, installShellFiles, rust-jemalloc-sys, testers, fd }: +{ stdenv, lib, rustPlatform, fetchFromGitHub, installShellFiles, rust-jemalloc-sys, testers, fd }: rustPlatform.buildRustPackage rec { pname = "fd"; @@ -27,7 +27,7 @@ rustPlatform.buildRustPackage rec { postInstall = '' installManPage doc/fd.1 - + '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd fd \ --bash <($out/bin/fd --gen-completions bash) \ --fish <($out/bin/fd --gen-completions fish)