3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #278621 from Vonfry/update/fzf-tab-script

zsh-fzf-tab: add update script
This commit is contained in:
Nick Cao 2024-01-23 08:58:17 -05:00 committed by GitHub
commit 264d49b13c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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";
@ -10,7 +10,7 @@ in stdenv.mkDerivation rec {
owner = "Aloxaf";
repo = "fzf-tab";
rev = "c2b4aa5ad2532cca91f23908ac7f00efb7ff09c9";
sha256 = "sha256-gvZp8P3quOtcy1Xtt1LAW1cfZ/zCtnAmnWqcwrKel6w=";
hash = "sha256-gvZp8P3quOtcy1Xtt1LAW1cfZ/zCtnAmnWqcwrKel6w=";
};
strictDeps = true;
@ -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!";