blob: af975e6e54ae3a7d99db37228206fa29ff4610f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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";
};
})
|