zsh-forgit: init at 22.11.0
This commit is contained in:
parent
4682f63a73
commit
b40da0c8f5
35
pkgs/shells/zsh/zsh-forgit/default.nix
Normal file
35
pkgs/shells/zsh/zsh-forgit/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -13249,6 +13249,8 @@ with pkgs;
|
||||||
|
|
||||||
zsh-fast-syntax-highlighting = callPackage ../shells/zsh/zsh-fast-syntax-highlighting { };
|
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-fzf-tab = callPackage ../shells/zsh/zsh-fzf-tab { };
|
||||||
|
|
||||||
zsh-autocomplete = callPackage ../shells/zsh/zsh-autocomplete { };
|
zsh-autocomplete = callPackage ../shells/zsh/zsh-autocomplete { };
|
||||||
|
|
Loading…
Reference in a new issue