diff options
| author | David Morgan <djm_uk@protonmail.com> | 2022-11-24 21:33:57 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2022-11-27 20:57:44 +0000 |
| commit | e9c803c3dcc7c74c297a481b946b5c2e9e335c9b (patch) | |
| tree | e84c3dd3cffcbc7ea4eaba027088bb691e7c3dd5 | |
| parent | maintainers: add deejayem (diff) | |
| download | nixpkgs-origin/backport-202192-to-release-22.11.tar.gz | |
zsh-forgit: init at 22.11.0origin/backport-202192-to-release-22.11
(cherry picked from commit b40da0c8f5cfdda145e3957199a43ea7f8cd36ac)
| -rw-r--r-- | pkgs/shells/zsh/zsh-forgit/default.nix | 35 | ||||
| -rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/shells/zsh/zsh-forgit/default.nix b/pkgs/shells/zsh/zsh-forgit/default.nix new file mode 100644 index 000000000000..01dc6874cc46 --- /dev/null +++ b/pkgs/shells/zsh/zsh-forgit/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ee05a707a32e..baf101784afb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13243,6 +13243,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 { }; |
