Files
nixpkgs/pkgs/by-name/gi/git-toolbelt/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1.1 KiB
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
makeWrapper,
git,
fzf,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "git-toolbelt";
version = "1.9.4";
src = fetchFromGitHub {
owner = "nvie";
repo = "git-toolbelt";
rev = "v${finalAttrs.version}";
hash = "sha256-6ubxMGDi5ocSh8q8rDujxpViT1OmVi7JzH+R6V/88UQ=";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
git
fzf # needed by git-fixup-with
];
installPhase = ''
runHook preInstall
install -Dm755 git-* -t "$out"/bin
for exe in "$out"/bin/*; do
wrapProgram "$exe" \
--prefix PATH : "$out"/bin:${lib.makeBinPath finalAttrs.buildInputs}
done
runHook postInstall
'';
meta = {
changelog = "https://github.com/nvie/git-toolbelt/blob/${finalAttrs.src.rev}/CHANGELOG.md";
description = "Suite of useful Git commands that aid with scripting or every day command line usage";
homepage = "https://github.com/nvie/git-toolbelt";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ tomasajt ];
platforms = lib.platforms.all;
};
})