2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "git-bug";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.8.0"; # the `rev` below pins the version of the source to get
|
|
|
|
rev = "v0.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "MichaelMure";
|
|
|
|
repo = "git-bug";
|
2022-12-17 10:02:37 +00:00
|
|
|
sha256 = "12byf6nsamwz0ssigan1z299s01cyh8bhgj86bibl90agd4zs9n8";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
vendorSha256 = "sha256-32kNDoBE50Jx1Ef9YwhDk7nd3CaTSnHPlu7PgWPUGfE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [
|
|
|
|
"-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 = ''
|
2022-12-17 10:02:37 +00:00
|
|
|
install -D -m 0644 misc/completion/bash/git-bug "$out/share/bash-completion/completions/git-bug"
|
|
|
|
install -D -m 0644 misc/completion/zsh/git-bug "$out/share/zsh/site-functions/git-bug"
|
2020-04-24 23:36:52 +00:00
|
|
|
install -D -m 0644 -t "$out/share/man/man1" doc/man/*
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
# not sure why the following executables are in $out/bin/
|
|
|
|
rm -f $out/bin/cmd
|
|
|
|
rm -f $out/bin/completion
|
|
|
|
rm -f $out/bin/doc
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
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";
|
2021-03-20 04:20:00 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ royneary ];
|
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|