Unverified Commit fa8300f5 authored by h7x4's avatar h7x4 Committed by GitHub
Browse files

git-fixup: format, add updateScript (#345667)

parents 4718500c c3058c28
Loading
Loading
Loading
Loading
+21 −2
Original line number Diff line number Diff line
{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper, git, coreutils, gnused, gnugrep }:
{
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  makeWrapper,
  git,
  coreutils,
  gnused,
  gnugrep,
  nix-update-script,
}:

stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "git-fixup";
@@ -28,9 +38,18 @@ stdenvNoCC.mkDerivation (finalAttrs: {

  postInstall = ''
    wrapProgram $out/bin/git-fixup \
      --prefix PATH : "${lib.makeBinPath [ git coreutils gnused gnugrep ]}"
      --prefix PATH : "${
        lib.makeBinPath [
          git
          coreutils
          gnused
          gnugrep
        ]
      }"
  '';

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Fighting the copy-paste element of your rebase workflow";
    homepage = "https://github.com/keis/git-fixup";