gitAndTools.git-bug: 0.6.0 -> 0.7.0

Update to version 0.7.0. Includes switch to buildGoModule because Gopkg.toml
has been removed upstream.
This commit is contained in:
royneary 2020-03-08 13:31:07 +01:00
parent 1349bcfde7
commit 1cd54c9f36
No known key found for this signature in database
GPG Key ID: 8241BE099775A097

View File

@ -1,18 +1,20 @@
{ stdenv, buildGoPackage, fetchFromGitHub }: { stdenv, buildGoModule, fetchFromGitHub }:
buildGoPackage rec { buildGoModule rec {
pname = "git-bug"; pname = "git-bug";
version = "0.6.0"; version = "0.7.0";
rev = "fc568209f073b9d775a09e0dbb8289cf9e5749bf"; rev = "71580c41a931a1ad2c04682e0fd701661b716c95";
goPackagePath = "github.com/MichaelMure/git-bug"; goPackagePath = "github.com/MichaelMure/git-bug";
src = fetchFromGitHub { src = fetchFromGitHub {
inherit rev; inherit rev;
owner = "MichaelMure"; owner = "MichaelMure";
repo = "git-bug"; repo = "git-bug";
sha256 = "1s18lzip52qpf52ad6m20j306mr16vnwhz9f7rirsa6b7srmcgli"; sha256 = "0mhqvcwa6y3hrrv88vbp22k7swzr8xw6ipm80gdpx85yp8j2wdkh";
}; };
modSha256 = "1cfn49cijiarzzczrpd28x1k7ib98xyzlvn3zghwk2ngfgiah3ld";
buildFlagsArray = '' buildFlagsArray = ''
-ldflags= -ldflags=
-X ${goPackagePath}/commands.GitCommit=${rev} -X ${goPackagePath}/commands.GitCommit=${rev}
@ -21,10 +23,9 @@ buildGoPackage rec {
''; '';
postInstall = '' postInstall = ''
cd go/src/${goPackagePath} install -D -m 0644 misc/bash_completion/git-bug "$out/etc/bash_completion.d/git-bug"
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 "$out/share/zsh/site-functions/git-bug"
install -D -m 0644 misc/zsh_completion/git-bug "$bin/share/zsh/site-functions/git-bug" install -D -m 0644 -t "$out/share/man/man1" doc/man/*
install -D -m 0644 -t "$bin/share/man/man1" doc/man/*
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {