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