2022-12-20 02:23:56 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2018-10-23 21:41:36 +00:00
|
|
|
|
2020-03-08 12:31:07 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "git-bug";
|
2022-12-20 02:23:56 +00:00
|
|
|
version = "0.8.0";
|
2018-10-23 21:41:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-08-10 02:21:03 +00:00
|
|
|
owner = "git-bug";
|
2018-10-23 21:41:36 +00:00
|
|
|
repo = "git-bug";
|
2022-12-20 02:23:56 +00:00
|
|
|
rev = "v${version}";
|
2022-12-09 16:28:13 +00:00
|
|
|
sha256 = "12byf6nsamwz0ssigan1z299s01cyh8bhgj86bibl90agd4zs9n8";
|
2018-10-23 21:41:36 +00:00
|
|
|
};
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-32kNDoBE50Jx1Ef9YwhDk7nd3CaTSnHPlu7PgWPUGfE=";
|
2020-03-08 12:31:07 +00:00
|
|
|
|
2022-12-20 02:23:56 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-12-20 02:23:56 +00:00
|
|
|
excludedPackages = [ "doc" "misc" ];
|
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [
|
2022-12-20 02:23:56 +00:00
|
|
|
"-X github.com/MichaelMure/git-bug/commands.GitCommit=v${version}"
|
2021-08-26 06:45:51 +00:00
|
|
|
"-X github.com/MichaelMure/git-bug/commands.GitLastTag=${version}"
|
|
|
|
"-X github.com/MichaelMure/git-bug/commands.GitExactTag=${version}"
|
|
|
|
];
|
2019-05-01 22:47:30 +00:00
|
|
|
|
2018-10-23 21:41:36 +00:00
|
|
|
postInstall = ''
|
2022-12-20 02:23:56 +00:00
|
|
|
installShellCompletion \
|
|
|
|
--bash misc/completion/bash/git-bug \
|
|
|
|
--zsh misc/completion/zsh/git-bug \
|
|
|
|
--fish misc/completion/fish/git-bug
|
|
|
|
|
|
|
|
installManPage doc/man/*
|
2018-10-23 21:41:36 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-23 21:41:36 +00:00
|
|
|
description = "Distributed bug tracker embedded in Git";
|
2024-08-10 02:21:03 +00:00
|
|
|
homepage = "https://github.com/git-bug/git-bug";
|
2022-12-20 02:23:56 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2024-08-10 22:18:30 +00:00
|
|
|
maintainers = with maintainers; [ royneary DeeUnderscore sudoforge ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "git-bug";
|
2018-10-23 21:41:36 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|