zsh-forgit: init at 22.11.0

This commit is contained in:
David Morgan 2022-11-24 21:33:57 +00:00
parent 4682f63a73
commit b40da0c8f5
No known key found for this signature in database
GPG key ID: C171251002C200F2
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,35 @@
{ stdenv, lib, fetchFromGitHub, git, fzf }:
stdenv.mkDerivation rec {
pname = "zsh-forgit";
version = "22.11.0";
src = fetchFromGitHub {
owner = "wfxr";
repo = "forgit";
rev = version;
sha256 = "ca7EM/F0Spsdr3MbjIVwbjLVXg6/qWGczBQHLCcpU5A=";
};
strictDeps = true;
postPatch = ''
substituteInPlace forgit.plugin.zsh \
--replace "fzf " "${fzf}/bin/fzf " \
--replace "git " "${git}/bin/git "
'';
dontBuild = true;
installPhase = ''
install -D forgit.plugin.zsh $out/share/zsh/${pname}/forgit.plugin.zsh
'';
meta = with lib; {
homepage = "https://github.com/wfxr/forgit";
description = "A utility tool powered by fzf for using git interactively";
license = licenses.mit;
maintainers = with maintainers; [ deejayem ];
platforms = platforms.all;
};
}

View file

@ -13249,6 +13249,8 @@ with pkgs;
zsh-fast-syntax-highlighting = callPackage ../shells/zsh/zsh-fast-syntax-highlighting { };
zsh-forgit = callPackage ../shells/zsh/zsh-forgit { };
zsh-fzf-tab = callPackage ../shells/zsh/zsh-fzf-tab { };
zsh-autocomplete = callPackage ../shells/zsh/zsh-autocomplete { };