git-fixup: format, add updateScript

This commit is contained in:
Michael Adler 2024-10-01 10:16:47 +02:00
parent ead36718eb
commit c3058c28f2

View File

@ -1,4 +1,14 @@
{ 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";