2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "git-bug";
|
|
|
|
version = "0.7.1"; # the `rev` below pins the version of the source to get
|
|
|
|
rev = "2d64b85db71a17ff3277bbbf7ac9d8e81f8e416c";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "MichaelMure";
|
|
|
|
repo = "git-bug";
|
|
|
|
sha256 = "01ab3mlwh5g1vr3x85fppflg18gb8ip9mjfsp2b5rfigd9lxyyns";
|
|
|
|
};
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
vendorSha256 = "0c8b47lj4wl3s21lm0vx4z7hznylm8c4fb8b8gxm278kn3zys607";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
2020-08-20 17:08:02 +00:00
|
|
|
-X github.com/MichaelMure/git-bug/commands.GitCommit=${rev}
|
|
|
|
-X github.com/MichaelMure/git-bug/commands.GitLastTag=${version}
|
|
|
|
-X github.com/MichaelMure/git-bug/commands.GitExactTag=${version}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-11-21 19:51:51 +00:00
|
|
|
install -D -m 0644 misc/bash_completion/git-bug "$out/share/bash-completion/completions/git-bug"
|
2020-04-24 23:36:52 +00:00
|
|
|
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/*
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Distributed bug tracker embedded in Git";
|
|
|
|
homepage = "https://github.com/MichaelMure/git-bug";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ royneary ];
|
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|