diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2016-09-23 00:29:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-23 00:29:40 +0200 |
commit | 992b59c9a11837bfae226318cb63521c34d2ced7 (patch) | |
tree | 1b9be244373a82fc0bbcf4ac6bf55691644592e4 /pkgs/tools | |
parent | 5dcc389afce3884396bee8cfd85e4e8c5ba5d7bd (diff) | |
parent | 0eddd4230678fc2c880c60b2fe530387db8798ac (diff) | |
download | nixlib-992b59c9a11837bfae226318cb63521c34d2ced7.tar nixlib-992b59c9a11837bfae226318cb63521c34d2ced7.tar.gz nixlib-992b59c9a11837bfae226318cb63521c34d2ced7.tar.bz2 nixlib-992b59c9a11837bfae226318cb63521c34d2ced7.tar.lz nixlib-992b59c9a11837bfae226318cb63521c34d2ced7.tar.xz nixlib-992b59c9a11837bfae226318cb63521c34d2ced7.tar.zst nixlib-992b59c9a11837bfae226318cb63521c34d2ced7.zip |
Merge pull request #18605 from LnL7/darwin-fzf
fzf: fix cycle in bin output
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/fzf/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/tools/misc/fzf/default.nix b/pkgs/tools/misc/fzf/default.nix index e75448bedb6a..3cb5c5680386 100644 --- a/pkgs/tools/misc/fzf/default.nix +++ b/pkgs/tools/misc/fzf/default.nix @@ -23,12 +23,19 @@ buildGoPackage rec { sed -i -e "s|expand('<sfile>:h:h').'/bin/fzf-tmux'|'$bin/bin/fzf-tmux'|" plugin/fzf.vim ''; - postInstall= '' + postInstall = '' cp $src/bin/fzf-tmux $bin/bin mkdir -p $out/share/vim-plugins ln -s $out/share/go/src/github.com/junegunn/fzf $out/share/vim-plugins/${name} ''; + preFixup = stdenv.lib.optionalString stdenv.isDarwin '' + # fixes cycle between $out and $bin + # otool -l shows that the binary includes an LC_RPATH to $out/lib + # it seems safe to remove that since but the directory does not exist. + install_name_tool -delete_rpath $out/lib $bin/bin/fzf + ''; + meta = with stdenv.lib; { homepage = https://github.com/junegunn/fzf; description = "A command-line fuzzy finder written in Go"; |