Merge pull request #82050 from royneary/git-bug-0.7.0

gitAndTools.git-bug: 0.6.0 -> 0.7.0
This commit is contained in:
Mario Rodas 2020-03-08 19:04:57 -05:00 committed by GitHub
commit d13fc7a387
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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; {