2022-05-18 14:49:53 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, git }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "git-codereview";
|
2022-11-27 09:42:12 +00:00
|
|
|
version = "1.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "golang";
|
|
|
|
repo = "review";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "v${version}";
|
2022-11-27 09:42:12 +00:00
|
|
|
sha256 = "sha256-vh2XFzvGEMutlaHKNhpuYdlnNl49zoNPkLYNUA1lWwc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
vendorSha256 = null;
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ git ];
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Manage the code review process for Git changes using a Gerrit server";
|
|
|
|
homepage = "https://golang.org/x/review/git-codereview";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.edef ];
|
|
|
|
};
|
|
|
|
}
|