zsh-fzf-tab: add update script

This commit is contained in:
Vonfry 2024-01-04 11:57:15 +08:00
parent 344705ea5d
commit adaa47a673
No known key found for this signature in database
GPG Key ID: F9D4E1576A3F8A60

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, ncurses }:
{ stdenv, lib, fetchFromGitHub, ncurses, nix-update-script }:
let
INSTALL_PATH="${placeholder "out"}/share/fzf-tab";
@ -44,6 +44,12 @@ in stdenv.mkDerivation rec {
install -D modules/Src/aloxaf/fzftab.so ${INSTALL_PATH}/modules/Src/aloxaf/fzftab.so
'';
passthru = {
updateScript = nix-update-script {
extraArgs = [ "--version" "branch=master" ];
};
};
meta = with lib; {
homepage = "https://github.com/Aloxaf/fzf-tab";
description = "Replace zsh's default completion selection menu with fzf!";