1{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
2
3buildGoModule rec {
4 pname = "git-bug";
5 version = "0.8.0";
6
7 src = fetchFromGitHub {
8 owner = "MichaelMure";
9 repo = "git-bug";
10 rev = "v${version}";
11 sha256 = "12byf6nsamwz0ssigan1z299s01cyh8bhgj86bibl90agd4zs9n8";
12 };
13
14 vendorSha256 = "sha256-32kNDoBE50Jx1Ef9YwhDk7nd3CaTSnHPlu7PgWPUGfE=";
15
16 nativeBuildInputs = [ installShellFiles ];
17
18 doCheck = false;
19
20 excludedPackages = [ "doc" "misc" ];
21
22 ldflags = [
23 "-X github.com/MichaelMure/git-bug/commands.GitCommit=v${version}"
24 "-X github.com/MichaelMure/git-bug/commands.GitLastTag=${version}"
25 "-X github.com/MichaelMure/git-bug/commands.GitExactTag=${version}"
26 ];
27
28 postInstall = ''
29 installShellCompletion \
30 --bash misc/completion/bash/git-bug \
31 --zsh misc/completion/zsh/git-bug \
32 --fish misc/completion/fish/git-bug
33
34 installManPage doc/man/*
35 '';
36
37 meta = with lib; {
38 description = "Distributed bug tracker embedded in Git";
39 homepage = "https://github.com/MichaelMure/git-bug";
40 license = licenses.gpl3Plus;
41 maintainers = with maintainers; [ royneary DeeUnderscore ];
42 };
43}