2018-10-23 22:41:36 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "git-bug";
|
2020-01-04 13:57:51 +00:00
|
|
|
version = "0.6.0";
|
|
|
|
rev = "fc568209f073b9d775a09e0dbb8289cf9e5749bf";
|
2018-10-23 22:41:36 +01:00
|
|
|
goPackagePath = "github.com/MichaelMure/git-bug";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "MichaelMure";
|
|
|
|
repo = "git-bug";
|
2020-01-04 13:57:51 +00:00
|
|
|
sha256 = "1s18lzip52qpf52ad6m20j306mr16vnwhz9f7rirsa6b7srmcgli";
|
2018-10-23 22:41:36 +01:00
|
|
|
};
|
|
|
|
|
2019-05-01 23:47:30 +01:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X ${goPackagePath}/commands.GitCommit=${rev}
|
|
|
|
-X ${goPackagePath}/commands.GitLastTag=${version}
|
|
|
|
-X ${goPackagePath}/commands.GitExactTag=${version}
|
|
|
|
'';
|
|
|
|
|
2018-10-23 22:41:36 +01:00
|
|
|
postInstall = ''
|
|
|
|
cd go/src/${goPackagePath}
|
|
|
|
install -D -m 0644 misc/bash_completion/git-bug "$bin/etc/bash_completion.d/git-bug"
|
|
|
|
install -D -m 0644 misc/zsh_completion/git-bug "$bin/share/zsh/site-functions/git-bug"
|
2018-10-23 23:25:57 +01:00
|
|
|
install -D -m 0644 -t "$bin/share/man/man1" doc/man/*
|
2018-10-23 22:41:36 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Distributed bug tracker embedded in Git";
|
|
|
|
homepage = https://github.com/MichaelMure/git-bug;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ royneary ];
|
|
|
|
};
|
|
|
|
}
|