depot/third_party/nixpkgs/pkgs/shells/zsh/zsh-forgit/default.nix
Default email 7d542a9f98 Project import generated by Copybara.
GitOrigin-RevId: b72b8b94cf0c012b0252a9100a636cad69696666
2022-12-02 08:20:57 +00:00

35 lines
832 B
Nix

{ 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;
};
}