mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
fd: disable shell completions for cross
Signed-off-by: Yureka <yureka@forkos.org>
This commit is contained in:
parent
2d15595062
commit
1747de4416
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user