fd: disable shell completions for cross

Signed-off-by: Yureka <yureka@forkos.org>
This commit is contained in:
Yureka 2024-07-19 23:41:21 +02:00 committed by Jörg Thalheim
parent 2d15595062
commit 1747de4416

View File

@ -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)