zsh-fzf-tab: init at 2021-01-24 (#110694)

* zsh-fzf-tab: init at 2021-01-24

* Update pkgs/shells/zsh/zsh-fzf-tab/default.nix

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Vonfry 2021-01-25 08:17:21 +08:00 committed by GitHub
parent 81db4e543c
commit 057017ee86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{ stdenv, lib, fetchFromGitHub, ncurses }:
let
INSTALL_PATH="${placeholder "out"}/share/fzf-tab";
in stdenv.mkDerivation rec {
pname = "zsh-fzf-tab";
version = "unstable-2021-01-24";
src = fetchFromGitHub {
owner = "Aloxaf";
repo = "fzf-tab";
rev = "78b4cefb27dc2bef5e4c9ac3bf2bd28413620fcd";
sha256 = "1f5m7vf7wxzczis2nzvhgqaqnphhp3a0wv8b612m7g4fnvk3lnkn";
};
buildInputs = [ ncurses ];
postConfigure = ''
pushd modules
./configure --disable-gdbm --without-tcsetpgrp
popd
'';
postBuild = ''
pushd modules
make -j$NIX_BUILD_CORES
popd
'';
installPhase = ''
mkdir -p ${INSTALL_PATH}
cp -r lib ${INSTALL_PATH}/lib
install -D fzf-tab.zsh ${INSTALL_PATH}/fzf-tab.zsh
install -D fzf-tab.plugin.zsh ${INSTALL_PATH}/fzf-tab.plugin.zsh
install -D modules/Src/aloxaf/fzftab.so ${INSTALL_PATH}/modules/Src/aloxaf/fzftab.so
'';
meta = with lib; {
homepage = "https://github.com/Aloxaf/fzf-tab";
description = "Replace zsh's default completion selection menu with fzf!";
license = licenses.mit;
maintainers = with maintainers; [ vonfry ];
platforms = platforms.linux;
};
}

View File

@ -9161,6 +9161,8 @@ in
zsh-fast-syntax-highlighting = callPackage ../shells/zsh/zsh-fast-syntax-highlighting { };
zsh-fzf-tab = callPackage ../shells/zsh/zsh-fzf-tab { };
zsh-autosuggestions = callPackage ../shells/zsh/zsh-autosuggestions { };
zsh-powerlevel10k = callPackage ../shells/zsh/zsh-powerlevel10k { };