forked from mirrors/nixpkgs
git-team: 1.7.0 -> 1.8.0
Co-authored-by: Jan Schmitt <git@smittie.de>
This commit is contained in:
parent
ee19d044d4
commit
bf2536b679
|
@ -1,49 +1,39 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
, go-mockery
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "git-team";
|
pname = "git-team";
|
||||||
version = "1.7.0";
|
version = "1.8.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hekmekk";
|
owner = "hekmekk";
|
||||||
repo = "git-team";
|
repo = "git-team";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-pHKfehPyy01uVN6kjjPGtdkltw7FJ+HmIlwGs4iRhVo=";
|
hash = "sha256-LZR30zqwit/xydQbpGm1LXd/tno/sTCaftgjVkVS6ZY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
vendorHash = "sha256-NTOUL1oE2IhgLyYYHwRCMW5yCxIRxUwqkfuhSSBXf6A=";
|
||||||
(fetchpatch {
|
|
||||||
name = "1-update-dependencies-for-go-1.18.patch";
|
nativeBuildInputs = [
|
||||||
url = "https://github.com/hekmekk/git-team/commit/d8632d9938379293521f9b3f2a93df680dd13a31.patch";
|
go-mockery
|
||||||
hash = "sha256-hlmjPf3qp8WPNSH+GgkqATDiKIRzo+t81Npkptw8vgI=";
|
installShellFiles
|
||||||
})
|
|
||||||
(fetchpatch {
|
|
||||||
name = "2-update-dependencies-for-go-1.18.patch";
|
|
||||||
url = "https://github.com/hekmekk/git-team/commit/f6acc96c2ffe76c527f2f2897b368cbb631d738c.patch";
|
|
||||||
hash = "sha256-Pe+UAK9N1NpXhFGYv9l1iZ1/fCCqnT8OSgKdt/vUqO4=";
|
|
||||||
})
|
|
||||||
(fetchpatch {
|
|
||||||
name = "3-update-dependencies-for-go-1.18.patch";
|
|
||||||
url = "https://github.com/hekmekk/git-team/commit/2f38137298e4749a8dfe37e085015360949e73ad.patch";
|
|
||||||
hash = "sha256-+6C8jp/qwYVmbL+SpV9FJIVyBRvX4tXBcoHMB//nNTk=";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
vendorSha256 = "sha256-GdwksPmYEGTq/FkG/rvn3o0zMKU1cSkpgZ+GrfVgLWM=";
|
preBuild = ''
|
||||||
|
mockery --dir=src/ --all --keeptree
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
go run main.go --generate-man-page > ${pname}.1
|
go run main.go --generate-man-page > git-team.1
|
||||||
installManPage ${pname}.1
|
installManPage git-team.1
|
||||||
|
|
||||||
# Currently only bash completions are provided
|
installShellCompletion --cmd git-team \
|
||||||
installShellCompletion --cmd git-team --bash <($out/bin/git-team completion bash)
|
--bash <($out/bin/git-team completion bash) \
|
||||||
|
--zsh <($out/bin/git-team completion zsh)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue