Unverified Commit db5bef92 authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

Merge pull request #328850 from Mic92/fd

parents 211db1ee 1747de44
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
{ 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)