Merge pull request #202192 from deejayem/add-zsh-forgit
This commit is contained in:
commit
41327ae44f
3 changed files with 46 additions and 0 deletions
|
@ -3294,6 +3294,15 @@
|
|||
fingerprint = "4E35 F2E5 2132 D654 E815 A672 DB2C BC24 2868 6000";
|
||||
}];
|
||||
};
|
||||
deejayem = {
|
||||
email = "nixpkgs.bu5hq@simplelogin.com";
|
||||
github = "deejayem";
|
||||
githubId = 2564003;
|
||||
name = "David Morgan";
|
||||
keys = [{
|
||||
fingerprint = "9B43 6B14 77A8 79C2 6CDB 6604 C171 2510 02C2 00F2";
|
||||
}];
|
||||
};
|
||||
deepfire = {
|
||||
email = "_deepfire@feelingofgreen.ru";
|
||||
github = "deepfire";
|
||||
|
|
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;
|
||||
};
|
||||
}
|
|
@ -13263,6 +13263,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 { };
|
||||
|
|
Loading…
Reference in a new issue