2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
2018-10-23 14:41:36 -07:00
|
|
|
|
2020-03-08 05:31:07 -07:00
|
|
|
buildGoModule rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "git-bug";
|
2020-04-11 09:04:02 -07:00
|
|
|
version = "0.7.1"; # the `rev` below pins the version of the source to get
|
|
|
|
rev = "2d64b85db71a17ff3277bbbf7ac9d8e81f8e416c";
|
2018-10-23 14:41:36 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "MichaelMure";
|
|
|
|
repo = "git-bug";
|
2020-04-11 09:04:02 -07:00
|
|
|
sha256 = "01ab3mlwh5g1vr3x85fppflg18gb8ip9mjfsp2b5rfigd9lxyyns";
|
2018-10-23 14:41:36 -07:00
|
|
|
};
|
|
|
|
|
2020-04-30 18:59:00 -07:00
|
|
|
vendorSha256 = "0c8b47lj4wl3s21lm0vx4z7hznylm8c4fb8b8gxm278kn3zys607";
|
2020-03-08 05:31:07 -07:00
|
|
|
|
2020-08-03 17:26:27 -07:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-05-01 15:47:30 -07:00
|
|
|
buildFlagsArray = ''
|
2020-04-11 09:04:02 -07:00
|
|
|
-ldflags=
|
2020-08-11 14:04:55 -07: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}
|
2019-05-01 15:47:30 -07:00
|
|
|
'';
|
|
|
|
|
2018-10-23 14:41:36 -07:00
|
|
|
postInstall = ''
|
2020-11-12 13:22:18 -08:00
|
|
|
install -D -m 0644 misc/bash_completion/git-bug "$out/share/bash-completion/completions/git-bug"
|
2020-03-08 05:31:07 -07: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/*
|
2018-10-23 14:41:36 -07:00
|
|
|
'';
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2018-10-23 14:41:36 -07:00
|
|
|
description = "Distributed bug tracker embedded in Git";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/MichaelMure/git-bug";
|
2018-10-23 14:41:36 -07:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ royneary ];
|
|
|
|
};
|
2020-07-30 20:58:04 -07:00
|
|
|
}
|