git-toolbelt: init at 1.9.1
This commit is contained in:
parent
34ce1162d3
commit
109205bee8
49
pkgs/by-name/gi/git-toolbelt/package.nix
Normal file
49
pkgs/by-name/gi/git-toolbelt/package.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
makeWrapper,
|
||||
git,
|
||||
fzf,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "git-toolbelt";
|
||||
version = "1.9.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nvie";
|
||||
repo = "git-toolbelt";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-lrVMSItA0Eo7DgB+QjOLPPxwMLaC9+6FNPrhw6pkpKA=";
|
||||
};
|
||||
|
||||
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 = "A 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;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user