mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
git-fixup: init at 1.6.1
This commit is contained in:
parent
757873b346
commit
c96227f29b
42
pkgs/by-name/gi/git-fixup/package.nix
Normal file
42
pkgs/by-name/gi/git-fixup/package.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper, git, coreutils, gnused, gnugrep }:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "git-fixup";
|
||||
version = "1.6.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "keis";
|
||||
repo = "git-fixup";
|
||||
rev = "v${finalAttrs.version}";
|
||||
sha256 = "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 ]}"
|
||||
'';
|
||||
|
||||
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";
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user