Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fzf: Expose interactive shell scripts #25080

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pkgs/tools/misc/fzf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,19 @@ buildGoPackage rec {
cp -r $src/man/man1 $man/share/man
mkdir -p $out/share/vim-plugins
ln -s $out/share/go/src/github.com/junegunn/fzf $out/share/vim-plugins/${name}

# Make scripts readily available for sourcing from shells. Note
# that while files there have 'completion' in their name, they are
# not a completions scripts (so no copying to bash-completion.d and friends).
mkdir -p $out/share/fzf
(cd $out/share/fzf && cp -s $out/share/go/src/github.com/junegunn/fzf/shell/* .)
'';

meta = with stdenv.lib; {
homepage = https://github.com/junegunn/fzf;
description = "A command-line fuzzy finder written in Go";
license = licenses.mit;
platforms = platforms.unix;
outputsToInstall = [ "out" "bin" "man" ];
};
}