2020-03-27 07:33:21 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2018-10-23 22:41:36 +01:00
|
|
|
|
2020-03-08 12:31:07 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "git-bug";
|
2020-03-08 12:31:07 +00:00
|
|
|
version = "0.7.0";
|
|
|
|
rev = "71580c41a931a1ad2c04682e0fd701661b716c95";
|
2018-10-23 22:41:36 +01:00
|
|
|
goPackagePath = "github.com/MichaelMure/git-bug";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "MichaelMure";
|
|
|
|
repo = "git-bug";
|
2020-03-08 12:31:07 +00:00
|
|
|
sha256 = "0mhqvcwa6y3hrrv88vbp22k7swzr8xw6ipm80gdpx85yp8j2wdkh";
|
2018-10-23 22:41:36 +01:00
|
|
|
};
|
|
|
|
|
2020-03-08 12:31:07 +00:00
|
|
|
modSha256 = "1cfn49cijiarzzczrpd28x1k7ib98xyzlvn3zghwk2ngfgiah3ld";
|
|
|
|
|
2019-05-01 23:47:30 +01:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X ${goPackagePath}/commands.GitCommit=${rev}
|
|
|
|
-X ${goPackagePath}/commands.GitLastTag=${version}
|
|
|
|
-X ${goPackagePath}/commands.GitExactTag=${version}
|
|
|
|
'';
|
|
|
|
|
2018-10-23 22:41:36 +01:00
|
|
|
postInstall = ''
|
2020-03-08 12:31:07 +00:00
|
|
|
install -D -m 0644 misc/bash_completion/git-bug "$out/etc/bash_completion.d/git-bug"
|
|
|
|
install -D -m 0644 misc/zsh_completion/git-bug "$out/share/zsh/site-functions/git-bug"
|
|
|
|
install -D -m 0644 -t "$out/share/man/man1" doc/man/*
|
2018-10-23 22:41:36 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Distributed bug tracker embedded in Git";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/MichaelMure/git-bug";
|
2018-10-23 22:41:36 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ royneary ];
|
|
|
|
};
|
|
|
|
}
|