depot/third_party/nixpkgs/pkgs/by-name/gi/git-fixup/package.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

61 lines
1.1 KiB
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
makeWrapper,
git,
coreutils,
gnused,
gnugrep,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "git-fixup";
version = "1.6.1";
src = fetchFromGitHub {
owner = "keis";
repo = "git-fixup";
rev = "v${finalAttrs.version}";
hash = "sha256-Mue2xgYxJSEu0VoDmB7rnoSuzyT038xzETUO1fwptrs=";
};
nativeBuildInputs = [ makeWrapper ];
dontBuild = true;
makeFlags = [
"DESTDIR=${placeholder "out"}"
"PREFIX="
];
installFlags = [
"install"
"install-fish"
"install-zsh"
];
postInstall = ''
wrapProgram $out/bin/git-fixup \
--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";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ michaeladler ];
platforms = lib.platforms.all;
mainProgram = "git-fixup";
};
})