2021-02-05 17:12:51 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, ncurses }:
|
|
|
|
|
|
|
|
let
|
|
|
|
INSTALL_PATH="${placeholder "out"}/share/fzf-tab";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "zsh-fzf-tab";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "unstable-2023-06-11";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Aloxaf";
|
|
|
|
repo = "fzf-tab";
|
2023-08-22 20:05:09 +00:00
|
|
|
rev = "c2b4aa5ad2532cca91f23908ac7f00efb7ff09c9";
|
|
|
|
sha256 = "sha256-gvZp8P3quOtcy1Xtt1LAW1cfZ/zCtnAmnWqcwrKel6w=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
strictDeps = true;
|
2021-02-05 17:12:51 +00:00
|
|
|
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 ];
|
2021-09-18 10:52:07 +00:00
|
|
|
platforms = platforms.unix;
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
}
|