1{ lib, buildGoModule, fetchFromGitHub, git }:
2
3buildGoModule rec {
4 pname = "git-codereview";
5 version = "1.2.0";
6
7 src = fetchFromGitHub {
8 owner = "golang";
9 repo = "review";
10 rev = "v${version}";
11 sha256 = "sha256-vh2XFzvGEMutlaHKNhpuYdlnNl49zoNPkLYNUA1lWwc=";
12 };
13
14 vendorSha256 = null;
15
16 ldflags = [ "-s" "-w" ];
17
18 nativeCheckInputs = [ git ];
19
20 meta = with lib; {
21 description = "Manage the code review process for Git changes using a Gerrit server";
22 homepage = "https://golang.org/x/review/git-codereview";
23 license = licenses.bsd3;
24 maintainers = [ maintainers.edef ];
25 };
26}