Unverified Commit 41327ae4 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #202192 from deejayem/add-zsh-forgit

parents 6ae3d870 b40da0c8
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
{ 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;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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 { };