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